Is there a way to get a list of all the GMarkers that have been added to a map?
Share
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.
I don’t think there’s a method in the API to return a list of GMarkers or overlays that have been added to a map. You’ll have to keep track of them yourself by adding them to a list when they are added to the map.
GMap2 provides addoverlay removeoverlay and clearoverlays events that might be useful.