I want to get a new map not using refush the webpage.
thanks
and has easy way to get all Overlays on the map?
I want to get a new map not using refush the webpage.
thanks
and has easy way to get all Overlays on the map?
Look the google map api documentation
And in particular: clearOverlays()
In the v2 API, there was the clearOverlays()
method as Gaby pointed out. However, this method is not present if the v3 API. If I remember correctly, this omission was intentional to keep the library lightweight.
Therefore, with the v3 API, you have to keep a reference of your overlays, and then call setMap(null)
on each overlay.