Jump to content

Google Map Help


wemustdesign

Recommended Posts

I have 2 questions about using google maps if anyone can help.

 

1. First of all I am wanting to know how to add a new line of text to the info box on my map

2. I am wanting to know how to add 'Get directions' on the info box.

 

I am using this code to create my map and add the infobox:

 

<script type="text/javascript"> 
function initialize() { if (GBrowserIsCompatible()) { 
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(54.988764 , -1.436700), 17); 
map.openInfoWindow(map.getCenter(),
document.createTextNode("Get directions here"));
map.setMapType(G_HYBRID_MAP);
map.setUIToDefault(); 
var point = new GLatLng(54.988764 , -1.436700);
map.addOverlay(new GMarker(point));
} } 


</script>

Link to comment
https://forums.phpfreaks.com/topic/161303-google-map-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.