-
Notifications
You must be signed in to change notification settings - Fork 77
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
Cluster range / min cluster size #7
Comments
Hi @meierjan. There is no public API in the library to change this, but you can modify the source code. Find the method For example I changed it to this: |
Hey, thanks for the heads up. I dug into the source code and found exactly this spot. How do you feel about adding this to the public api? Maybe I can provide a PR |
How would you name the method for setting this value? |
I will read the source-code completely to understand what actually happens under the hood and then come back with a naming idea. I saw quad-trees so something like grid-size was my first intention. |
I feel like |
After thinking for a while what I really wanted was a minimum cluster size. Like not render them as clusters if there a less then X markers in the bucket. So you are free to close this issue if you don't think a "grid-size" is a good feature. |
I did it like this. Maybe you have some thoughts: |
The minimum cluster size is a good candidate to add to the public API. Please send a pull request and I will take a look. |
Hey, thank you for writing this library - google maps utils really lacks maintainers...
I wonder if it's possible to change the range of the clusters. I've just seen the screenshots and the clusters seem very far apart.
Thanks in advance.
The text was updated successfully, but these errors were encountered: