SINTEF-9012 / PruneCluster

Fast and realtime marker clustering for Leaflet
MIT License
551 stars 131 forks source link

Can I disable clustering from a certain zoom level? #144

Open ry111 opened 7 years ago

ry111 commented 7 years ago

Hi, Does PruneCluster support an equivalent of MarkerCluster's 'disableClusteringAtZoom' option? It can be useful to see the actual markers at the max zoom level, instead of the spiderfied markers.

Thanks

AndreaAstronaut commented 7 years ago

I'd be interested in this as well. In my application I would like to cluster markers only until a certain zoom level and then show all actual markers. is anything like this supported?

simison commented 7 years ago

You can change clustering size depending on zoom level, though!

And of course you could just disable the PruneCluster and enable it again, but that might be a bit slow.

AndreaAstronaut commented 7 years ago

Thanks @simison for the quick help. I will try changing cluster size dependent on zoom, that should do the trick. Thanks! :)