Hi,
I just tried to create a google map with some markers at random
location on the map. I have bound infowindow with those markers. In
internet explorer 8 beta 1, it behaves normally when I firstly click
on a maker, i.e. the infowindow pop up normally. However, when I
click on other markers then the infowindow always pop up on the top
left hand corner but with the content position at the correct
location, so the content is displayed outside of the infowindow.
But I have tried in firefox and google chrome, it just behaves
normally even I click on every markers.
Actually I just use the sample codes from the playground.
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
// Add 10 markers to the map at random locations
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();
for (var i = 0; i < 10; i++) {
var point = new GLatLng(southWest.lat() + latSpan * Math.random
(),
southWest.lng() + lngSpan * Math.random
());
var marker = new GMarker(point);
marker.bindInfoWindow('hi hi');
map.addOverlay(marker);
}
}
}
this is the link to my application. http://www.chrislschan.com/
Thanks.
Cheers,
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---