Toggling on/off Markers in Google Maps API v3
问题 I'm having trouble getting the setMap(null); function that everyone seems to be recommending to work. I believe it may be a problem with the way I've implemented the markers. If someone could take a look and let me know if you see something wrong I'd greatly appreciate it. LINK: http://www.dougglover.com/samples/UOITMap/v2/ Please Note: Old link above, doesn't go anywhere. 回答1: The basic problem is that if you want this to work you've got to make up your mind about what the markersTest object