PruneCluster icon indicating copy to clipboard operation
PruneCluster copied to clipboard

How do I get the clusters list with the right position?

Open paolobenve opened this issue 5 years ago • 0 comments

In a map click event, I need to get the list of the shown clusters. I'm initializing the clusters with

var pruneCluster = new PruneClusterForLeaflet(150, 70);

and passing to the click function the array pruneCluster.Cluster._clusters

Things mostly work: most time I get what I want.

But, in some case, the length of that array is different from the number of clusters I see in the map. I.e., that array don't represent the situation I have in the map.

What array should I use?

paolobenve avatar Mar 04 '19 07:03 paolobenve