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

Clusters not dividing correctly #13318

Open
pizerg opened this issue Nov 5, 2024 · 0 comments
Open

Clusters not dividing correctly #13318

pizerg opened this issue Nov 5, 2024 · 0 comments

Comments

@pizerg
Copy link

pizerg commented Nov 5, 2024

Mapbox does not seem to be honoring supercluster clusters (or there's a bug in supercluster) at some zoom levels.

mapbox-gl-js version: 3.7.0

browser: All

Steps to Trigger Behavior

Max Zoom set to 21
Cluster Max Zoom set to 21
Cluster Radius set to 50

The features set contains some points in the exact same location.

When reaching zoom level 20 the 4 points cluster should be divided in 2 subclusters but it doesn't.

Google Maps which uses the same supercluster library correctly divides the clusters at all zoom levels, the only big difference seems to be that it uses getClusters instead of getTile.

For more specific details see the links below.

Link to Demonstration

Mapbox: https://jsfiddle.net/yhd8491q
Google Maps: https://jsfiddle.net/zdonchu6

Expected Behavior

Clusters should be divided according to supercluster computation

Actual Behavior

Clusters are not divided according to supercluster computation

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