Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
paolobenve opened this issue Mar 4, 2019 · 0 comments
Open

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

paolobenve opened this issue Mar 4, 2019 · 0 comments

Comments

@paolobenve
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant