Mapbox-gl-js: Does cluster support vector tiles?

Created on 13 Dec 2017  路  7Comments  路  Source: mapbox/mapbox-gl-js

Hi,

I found this example about cluster: Create and style clusters

I tried to add vector tiles source but it did not work. I wonder if the cluster supports vector tiles or if I wanna cluster points data from vector tiles, is there a way to do so?

Thanks

Most helpful comment

Two years, any updates on this feature or are we still limited to used geoJson sources at this time

All 7 comments

No, clustering requires special processing that is only possibly with GeoJSON sources at this time.

Any plan to push this special processing at work ? Thanks

Are there any plans to implement this? Even if the clustering math is limited on a per-tile basis

cc @mourner

Two years, any updates on this feature or are we still limited to used geoJson sources at this time

nooo I'm bummed, just refactored the whole site using mapbox tiles instead of loading our big GeoJSON on client level all the time.... clustering should work with vector-tiles too

"You can cluster data to put into a vector tile source using Tippecanoe, but can not create a cluster from a vector tile source on the fly without some custom code." We ended up using Tippecanoe to add clusters to vector tiles.

Great thanks to @ ryanbaumann

Link: https://github.com/mapbox/mapboxgl-jupyter/issues/71#issuecomment-411771580

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samanpwbb picture samanpwbb  路  3Comments

aderaaij picture aderaaij  路  3Comments

BernhardRode picture BernhardRode  路  3Comments

muesliq picture muesliq  路  3Comments

mollymerp picture mollymerp  路  3Comments