Enrico
unread,Oct 1, 2010, 7:36:29 AM10/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hi all,
i have a problem with IE (strange thing)
I have a map with a kml layer and a overlayView with a lot of polygon.
I do the setMap of kmlLayer before that the overlayLayer but the kml
is painted over the other.
To change this i do something like this:
isKlmLoading = true;
kmlLayer.setMap(map);
var listener = g.event.addListener(kmlLayer, 'metadata_changed',
function(){
isKlmLoading = false;
showOverlay(map, zoom);
g.event.removeListener(listener);
});
In showOverlay
if (!isKlmLoading)
overlay.setMap(map);
It work with every browser but IE seem that sometimes is not firing
the metadata_changed event.
In every zoom change I need to change the kmllayer and the
overlaylayer. On load it work, and the the first time that i go to a
zoom, the kml is loaded but the event is not fired, the second time
that i go to the same zoom, the event is fired...
What can I do (forgettin IE is not a solution ;) )?