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


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to