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();
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!
and than set the queue length to 0.