I'm struggling with this. I want to add "Directions "to here" and
"from here" where I put my marker. What code do I need to enter and
where do I put it below? Step by step please. I don't understand the
lingo.
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(44.389575, -68.205708), 13);
var marker = new GMarker(new GLatLng(44.389575, -68.205708));
map.addOverlay(marker);
var html ="Park Headquarters;
marker.openInfoWindowHtml(html);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width:500px;height:300px"></div>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---