-
Notifications
You must be signed in to change notification settings - Fork 295
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
getLeaves returns 'No cluster with the specified id' #72
Comments
I have come up with a solution that gets me the data that I need. Modifying the onClick to encode the cluster_id gets all of the items in the cluster.
Thanks in advance. |
The Webpack bin isn't loading for me for some reason... I'd guess that you're experiencing this issue because GL JS still uses Supercluster 2.3.0, which doesn't encode zoom into ids. We should upgrade there. Let's close here since it's not directly a supercluster issue. |
I'm okay with closing it. For some reason if you do a hard refresh the WebpackBin it will render correctly. Also, thanks for the great work you are doing. |
Just get same issue. Posted here to remind myself or others in the future for easy googling. |
You're right. Got the same issue and thanks to your comment! |
I am using react-mapbox-gl@3.4.1 and supercluster@3.0.2 to get the list of features in a clicked cluster.
I saw that in V3.0.0 of supercluster the zoom factor is encoded into the cluster_id.
I am using a GeoJSONLayer to do the clustering (which may not be the right way to do it for supercluster) and the correct features are not returned OnClick.
Clicking some clusters throws a run-time error:
Any idea why no features or the wrong features are being returned?
WebpackBin Showing a working example of the issue.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: