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> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.