Leaflet.markercluster icon indicating copy to clipboard operation
Leaflet.markercluster copied to clipboard

Spiderfy all clusters at a particular view

Open abhickbiswas opened this issue 8 years ago • 11 comments

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.

abhickbiswas avatar Dec 21 '16 12:12 abhickbiswas

Yep, same question here. Anyone?

that1guy avatar Mar 15 '17 19:03 that1guy

Leaflet.MarkerCluster only supports having one cluster spiderfied at the moment, so this would need a bit of work to support.

danzel avatar Mar 16 '17 00:03 danzel

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 .

abhickbiswas avatar Mar 31 '17 07:03 abhickbiswas

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?

danzel avatar Apr 13 '17 04:04 danzel

Would be good if a zoom level could be specified at which all remaining clusters spiderfy (not just at MaxZoom).

beneuto avatar Mar 22 '18 23:03 beneuto

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?

Mahendra789 avatar Apr 07 '22 10:04 Mahendra789

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.

leslieli avatar Sep 17 '22 09:09 leslieli

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 ?

claustres avatar Sep 20 '22 12:09 claustres

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

ddjerqq avatar Jan 14 '24 01:01 ddjerqq

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

Greeshmareji avatar Apr 04 '24 08:04 Greeshmareji