supercluster icon indicating copy to clipboard operation
supercluster copied to clipboard

Feature Request: Cluster property about feature distance

Open enersis-pst opened this issue 2 years ago • 2 comments

We would like to show a different marker (like a pin) on mapbox when all geometries have same location. When zoom out and features with different locations we would like to show a cluster like a circle. From this perspective it would be nice to have a property per cluster which gives the info if all included features have the same coords. If kdbush has a info about that or about the max radius, it would be nice to have it inside the cluster feature property.

enersis-pst avatar Feb 01 '23 10:02 enersis-pst

Thanks for the suggestion! Yeah, in theory, Supercluster could track whether all locations of a cluster are the same, and expose some kind of cluster_same_location: true property.

mourner avatar Feb 02 '23 11:02 mourner

if this woudnt reduce performance, it would be helpful.

enersis-pst avatar Feb 02 '23 11:02 enersis-pst