You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing an app where the user gets to select the maxClusterRadius as an input,
and I would really like a way to easily update the maxClusterRadius, and then the clusters too.
The only way that I spotted so far is to recreate the MarkerClusterGroup with the new radius value.
The problem is that this way I have to add again all the layers, and since I'm using a layerGroup, it get's very annoying since not all sub-groups should be added.
Is there no easier way to change the radius and refresh the clusters?
The text was updated successfully, but these errors were encountered:
@Alberto-Amo-Marin
no, not a real solution,
after I update the radius
I have to use clearLayers() and then add again the layers to the cluster with addLayers (and for me is a bit annoying because I need to check which layers should be added and which layer should not).
I haven't found an easier/better solution.
I'm developing an app where the user gets to select the maxClusterRadius as an input,
and I would really like a way to easily update the maxClusterRadius, and then the clusters too.
I was trying with something like:
but it doesn't seems to be working.
The only way that I spotted so far is to recreate the MarkerClusterGroup with the new radius value.
The problem is that this way I have to add again all the layers, and since I'm using a layerGroup, it get's very annoying since not all sub-groups should be added.
Is there no easier way to change the radius and refresh the clusters?
The text was updated successfully, but these errors were encountered: