jawj / OverlappingMarkerSpiderfier

Deals with overlapping markers in Google Maps JS API v3, Google Earth-style
http://blog.mackerron.com
836 stars 238 forks source link

Disable / enable spiderfying programmatically #108

Open peschee opened 8 years ago

peschee commented 8 years ago

Hi @jawj

Is it possible to disable / enable the spiderfying with the current version of this library? We're currently working on an implementation where spiderfying should be disabled in certain zoom levels and (re-) enabled in other zoom levels.

One options is to remove and re-add all markers to or from the spiderfier when these zoom-level conditions apply, but I'd like to prevent doing this as it seems quite an overhead.

peschee commented 8 years ago

There's a similar feature implemented in #71 in commit 1c5302df6b51319aad7d6a2c9b00c908d5850dc2 where you can set a minimum zoom level to activate the spiderfying.