In Google Maps API v2, if I wanted to remove all the map markers, I could simply do:
map.clearOverlays();
How do I do this in Google Maps A
Just walk over markers and remove them from map, empty maps markers array after that:
var markers = map.markers; for(var i = 0; i < markers.length; i++) { markers[i].setMap(null); } map.markers = [];