Hello. Here is my code:
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
function createMarker(point,html) {
// ======== Add a "directions" link ======
html += '<br> <a href="http://maps.google.com/maps?
saddr=&daddr=' + point.toUrlValue() + '" target ="_blank">Directions<\/
a>';
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(40.29989,-74.02871),14);
var point = new GLatLng(40.29688,-74.02760);
var marker = createMarker(point,'<div style="width:
200px">Systek<br />Street Address<br />Town, State<br />ZIP);
map.addOverlay(marker);
}
else {
alert("Sorry, the Google Maps API is not compatible with this
browser");
}
</script>
When you click on Get Directions in the browser, it loads up google
maps, but only displays the coordinates.
How can I have it display the "address" as well? I had to move the
marker since the coordinates were off.
Thank you!!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---