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

Clustering not behaving like supercluster (via mapbox-gl-js) #279

Open
ferntheplant opened this issue Oct 7, 2024 · 0 comments
Open

Clustering not behaving like supercluster (via mapbox-gl-js) #279

ferntheplant opened this issue Oct 7, 2024 · 0 comments

Comments

@ferntheplant
Copy link

I'm using tippecanoe to generate a tileset from a geojson file with features pre-clustered at relevant zoom levels. I'm running:

tippecanoe -o output/clusters.mbtiles --maximum-zoom=14 --minimum-zoom=12 -r1 --cluster-maxzoom=15 --cluster-distance=25 --force output/parcel-centroids_clustering.geojson

When viewing my tileset through a tool like MapBox Studio, I see the clusters behave very strange: they completely disappear as a zoom out rather than as I zoom in. I also have many very small, overlapping clusters closer than 50 pixels that could have been merged.

When rendering this geojson file directly using mapbox-gl-js with cluster settings { cluster: true, clusterMaxZoom: 15, clusterRadius: 100 } I'm seeing much nicer behavior with clusters merging and not being dropped as I zoom out.

Am I misconfiguring the clustering behavior in the tippecanoe CLI options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant