You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supercluster’s constructor requires a GeoJSONFeatures (aka feature collection). However, it should be possible to cluster geometry collections as well.
One complication is that getTile() currently synthesizes a feature with cluster and point_count properties for each cluster, whereas a geometry collection contains only geometries.
Ignore empty feature collections or non–feature collections for the purposes of clustering or tiling. A source’s clustering option can only be set when the source is constructed, but setGeoJSON() enables the developer to swap a clusterable feature for an unclusterable geometry and back.
Supercluster
’s constructor requires aGeoJSONFeatures
(aka feature collection). However, it should be possible to cluster geometry collections as well.One complication is that
getTile()
currently synthesizes a feature withcluster
andpoint_count
properties for each cluster, whereas a geometry collection contains only geometries./ref mapbox/mapbox-gl-native#7622
/cc @mourner @jfirebaugh
The text was updated successfully, but these errors were encountered: