wemustdesign Posted June 7, 2009 Share Posted June 7, 2009 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 More sharing options...
DarkSuperHero Posted June 7, 2009 Share Posted June 7, 2009 Have you tried looking through here: http://code.google.com/apis/maps/documentation/examples/index.html OR http://code.google.com/apis/maps/documentation/controls.html#Custom_Controls Link to comment https://forums.phpfreaks.com/topic/161303-google-map-help/#findComment-851223 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.