In Google Maps API v2, I was using map.clearOverlays() to remove the marker and draw them again.
map.clearOverlays()
How can I do that using Google Maps API v3 ?
Th
The overlayMapTypes object brings a clear method:
overlayMapTypes
map.overlayMapTypes.clear()
Whereas map is your Google Maps object.
If you cannot find the method in your API version, you can resort to the following source of clear:
clear
clear = function() { for (; this.get("length");) this.pop() };