3

I have completed add markers, but when I implement remove markers the program don't show any markers at all. I have tried two codes, they are: markers.pop(marker); or marker.setMap();

1
  • can you post your code for your removeMarkers function? it'd be more helpful if you provided more information
    – ytv
    Dec 26 '15 at 19:44
2

I had some trouble as well, but I figured out that you have to loop through the markers array that you (should) have in AddMarkers, setting each individual marker to null. After the for loop, you should set the length of said array to zero. Consult the problem set if you have more troubles. Hopefully this helps!

1

may help

https://developers.google.com/maps/documentation/javascript/examples/marker-remove

and than set the queue length to 0.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .