SINTEF-9012 / PruneCluster

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

Change cluster size after initial setup #177

Closed Valachio closed 5 years ago

Valachio commented 5 years ago

I am trying to dynamically change cluster size based on zoom. When the user zooms out (low zoom), the cluster size will get bigger; when the user zooms in (high zoom), the cluster size will get smaller.

I tried to perform the following. However, changing Cluster.Size attribute did not actually change the cluster size, even though the number is changed.

var pruneCluster = new PruneClusterForLeaflet(120);
pruneCluster.Cluster.Size = 40

Is there some way for me to change the cluster size after PruneCluster is initially set up?

EDIT: My fault. Modifying Cluster.Size is actually working.