In Google Maps API v2, I was using map.clearOverlays() to remove the marker and draw them again.
How can I do that using Google Maps API v3 ?
Thanks
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.
See here for details on the various options open to you but you now have to iterate through the markers and remove them individually. Your code should look something like this: