-
Notifications
You must be signed in to change notification settings - Fork 299
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
Feature request: get zoom level at which the marker is unclustered #193
Comments
Need this. @orangecoloured did you ever find a solution? |
@karldanninger Sorry, I can't remember and I can't test that now. |
I appreciate your quick reply, thank you! I have the coordinates of the point I'd like to zoom into, so I guess the not-so performant way to do this is:
|
Any updates on this? I'm using supercluster on the server and having to manually loop over each cluster to find its getClusterExpansionZoom value and add to the properties, so I know what zoom level to use when clicking on the cluster. would be ideal, and probably more performant if supercluster could just include this property automatically? |
yeah, that would be lovely! |
You can loop through the clusters with a recursive function until you find your point (assuming you know it's coordinates) and remember the parent cluster of the point. |
@andreimp1 that's exactly what I am doing indeed |
There's the
getClusterExpansionZoom
which gives the zoom level at which the existing cluster is breaking into more clusters/markers.It would be handy to be able to zoom into a marker so it appears unclustered. The use case for this is when I select an entity related to the marker outside of the map and I need to focus on the marker in case it's out of bounds or clustered.
Or is there a way to do this with the existing methods?
The text was updated successfully, but these errors were encountered: