Google map "zoomend" event issue
- by ebae
On my html page, I have a google map with a few markers.
I want all the markers to be cleared once the zoom is changed on the map with the following code.
GEvent.addListener(map, "zoomend", function()
{
map.clearOverlays();
}
But what happens is actually the markers are removed by the "clearOverlays()" function, but then they appear again.
Any idea why? Where is it going after the event is handled?