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
{{ message }}
Repository navigation
Add documentation on cluster behavior + syntax #2985
Right now the only things I could find on our clustering functionality were in the examples and in the style reference for GeoJSONSource.
We should document things like the point_count property more explicitly.
Also, I was trying to figure out if there's a way to set a minimum for the number of points in a clusterRadius that should be grouped in a cluster (i.e. if you only want clusters for areas w more than 3 points) and I did not have time to fully check.
@mollymerp I don't think we need the minClusterPoints option, but it would be possible to add on the supercluster library level. We should definitely improve docs about clustering.
I also find the point_count a little cryptic, like for a single point in a cluster=true source, its point_count is null instead of 0 (like if I need to filter them out).
So, what properties get generated exactly? cluster (boolean), point_count (integer), any others?
(Are there any other examples of properties generated by Mapbox-G? I wonder if they should be $cluster, $point_count etc to reduce the chance of namespace collisions...)
Activity
mourner commentedon Aug 11, 2016
@mollymerp I don't think we need the
minClusterPointsoption, but it would be possible to add on thesuperclusterlibrary level. We should definitely improve docs about clustering.YunjieLi commentedon Aug 12, 2016
I also find the
point_counta little cryptic, like for a single point in a cluster=true source, its point_count is null instead of 0 (like if I need to filter them out).stevage commentedon Aug 16, 2017
So, what properties get generated exactly?
cluster(boolean),point_count(integer), any others?(Are there any other examples of properties generated by Mapbox-G? I wonder if they should be
$cluster,$point_countetc to reduce the chance of namespace collisions...)tuukka commentedon Feb 18, 2018
I'm seeing
cluster,cluster_id,point_count,point_count_abbreviated.mourner commentedon Jul 24, 2018
Fixed in #7000