Javascript, How can I make use of switch case in the zoom_changed listener in google maps?
问题 I have several markers on my webpage and I am making use of Overlapping Markers library : https://github.com/jawj/OverlappingMarkerSpiderfier . What I am trying to do is : When the user first lands on the webpage, the default zoom level is 6 . When they click on a bunch of overlapping markers, the markers don't spiderfy but rather zooms in on them to a zoom level of 9 . Once the zoom level == 9 , if they click on the markers, they will spiderfy and then they can click on individual markers