Hi... I have some code which works fine in Firefox but when I view it in any other browsers (mainly Safari and IE) it does some odd things.
All of the info bubbles show the same content (that from the last marker). I know it's the geocoding that's causing this to happen because it's fine if I take this out. Does anyone have any ideas? Thanks <head> <script src="http://www.google.com/uds/api? file=uds.js&v=1.0&key=ABQIAAAAQJTCOfFBzEZfb0xYTu1h_BR0_9owy9VLLEJCKI_ZedHr-0NdXxQd9Q8sR1hC7s4PNGNVmIaTUQvspA" type="text/javascript"></script> <script src="http://maps.google.com/maps? file=api&v=2&sensor=false&key=ABQIAAAAQJTCOfFBzEZfb0xYTu1h_BR0_9owy9VLLEJCKI_ZedHr-0NdXxQd9Q8sR1hC7s4PNGNVmIaTUQvspA" type="text/javascript"></script> </head> <body> <div id="map"></div> <script type="text/javascript"> if (GBrowserIsCompatible()) { var localSearch = new GlocalSearch(); function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html, { noCloseOnClick: true }); }); return marker; } var map = new GMap2(document.getElementById("map")); map.setMapType(G_HYBRID_MAP); map.setCenter(new GLatLng(54.57951, -4.41387), 6); //map.addControl(new GHierarchicalMapTypeControl()); map.addControl(new GSmallMapControl()); } // display a warning if the browser was not compatible else { alert("Sorry, the Google Maps API is not compatible with this browser"); } </script> <script type="text/javascript"> localSearch.execute("NW1 1DE, UK"); localSearch.setSearchCompleteCallback(null, function() { var point = new GLatLng(localSearch.results[0].lat,localSearch.results[0].lng); var marker = createMarker(point,'NW1 1DE') map.addOverlay(marker); }); </script> <script type="text/javascript"> localSearch.execute("CB6 1DE, UK"); localSearch.setSearchCompleteCallback(null, function() { var point = new GLatLng(localSearch.results[0].lat,localSearch.results[0].lng); var marker = createMarker(point,'CB6 1DE') map.addOverlay(marker); }); </script> </body> -- 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.
