The only way to do it is to keep references to your markers when you
create them, and removeOverlay them one by one. For example:

var gmarkers = [];

   ...
   map.addOverlay(marker);
   gmarkers.push(marker);

...
for (var i=0; i<gmarkers.length; i++) {
  map.removeOverlay(gmarkers[i]);
}

-- 
Mike Williams
http://econym.org.uk/gmap



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