Google map "zoomend" event issue

Posted by ebae on Stack Overflow See other posts from Stack Overflow or by ebae
Published on 2010-05-06T04:23:48Z Indexed on 2010/05/06 4:28 UTC
Read the original article Hit count: 203

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about google

Related posts about map