SINTEF-9012 / PruneCluster

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

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

Open paolobenve opened 5 years ago

paolobenve commented 5 years ago

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?