I want to get a new map not using refush the webpage.
thanks
and has easy way to get all Overlays on the map?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.