Thanks Mike for that. But then how to clear the all overlays on the map. On Wed, Sep 17, 2008 at 6:41 PM, Mike Williams <[EMAIL PROTECTED]>wrote:
> > Try performing map.addOverlay(geoXml) outside your > for (var i = 0; i < markers.length; i++) > > What might be happening is that it lets you addOverlay it multiple > times, creating lots of entries in its overlay list that reference the > same overlay. > > map.clearOverlays() reads through that list. The first time it > encounters that overlay, it successfully removes it. When it encounters > the second entry in the list for the same overlay, it fails, because it > can't remove an overlay that's already been removed. > > -- > http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team > > > > > -- Thanks and Regards, PRADEEP SOMANI To succeed in your mission, you must have single-minded devotion to your goal --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
