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.
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.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.