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.
In a map click event, I need to get the list of the shown clusters. I'm initializing the clusters with
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?