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

Custom clustering #21

Open
victorbadic opened this issue Oct 14, 2015 · 1 comment
Open

Custom clustering #21

victorbadic opened this issue Oct 14, 2015 · 1 comment

Comments

@victorbadic
Copy link

Hi. I will ask this here because I was not able to find any information about this feature anywhere else.
Is there a way to control / customize the clustering process?

I want markers to cluster based on a custom property inserted by me, for example "isInSearchArea".
I'm displaying lots of markers on a map, and I want those that are placed inside a given searchArea to cluster together, if i zoom out. In other words, I do not want to have a cluster that has markers located within the search area alongside markers that are outside the search area.

Is this possible with the current capabilities of this library?

@foobarmeow
Copy link

If you only want to cluster certain markers, you can just not add those markers to MarkerClusterer.

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

2 participants