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
You mean remove as in hiding them or deleting them?
if hiding:
function clearMarkers() { setAllMap(null); }
if you wish to delete them:
function deleteMarkers() { clearMarkers(); markers = []; }
notice that I use an array markers to keep track of them and reset it manually.