Leaflet.markercluster
Leaflet.markercluster copied to clipboard
Spiderfy all clusters at a particular view
Hi we have a certain requirement where by we would like to have all the clusters spiderfy at a particular view, once it has cross the maxzoom set.
Basically once we reach the maxzoom level, if there are 5 clusters at at that particular view, all of them should spiderfy. Currently the default behaviour is that, when one cluster is spiderfied, the remaining clusters get unspiderfied. How can we change this to make all the clusters spiderfied.
Even if we are clicking on a clusters, we don't want the first cluster to un - spiderfy before the second cluster spiderfies.
Yep, same question here. Anyone?
Leaflet.MarkerCluster only supports having one cluster spiderfied at the moment, so this would need a bit of work to support.
I am ready to take a dig at it, tell me the approach how should i start
On Thu, Mar 16, 2017 at 6:06 AM, Dave Leaver [email protected] wrote:
Leaflet.MarkerCluster only supports having one cluster spiderfied at the moment, so this would need a bit of work to support.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Leaflet/Leaflet.markercluster/issues/744#issuecomment-286922970, or mute the thread https://github.com/notifications/unsubscribe-auth/AXjZEtaFE4nrMv0u_RPqCT5zOezNPAQ0ks5rmIP7gaJpZM4LS4I6 .
Throughout the code there are references to _spiderfied
, it is a member variable on MarkerClusterGroup.
I'm not 100% sure the best way to make it nicer, maybe look at changing it to an array instead, and have an option to control whether we only have a single one open or keep multiple open?
Would be good if a zoom level could be specified at which all remaining clusters spiderfy (not just at MaxZoom).
Any update on this? I have a requirement where i wanted to spiderfy all the marker clusters when i load the map. Is there any workaround for this?
We have the same requirement as well - would like to have a way to spiderfy all the marker clusters.
I saw many requests for this - seem it is a common requirement now.
@danzel Could you please re-evaluate it? Thanks.
My two cents here, spiderify everything at a given zoom level is equivalent to replace all cluster another representation: the spider. Maybe it could be addressed by making cluster rendering customization more easy. Right now it seems to be limited to an icon but maybe a more simple way to do it is to make the spider render functions available to be used in cluster custom rendering ?
Do we have an implementation for this? I also have a requirement to spiderfy all the clusters. Could anyone point me at a workaround if the library doesn't support it yet
Hi Team, I am also looking for the same usecase. I need to spiderify the cluster on reaching the maxzoom level without clicking it(cluster should automatically spiderify) Is there any workaround for this?. Please suggest