Feature Request: Cluster property about feature distance
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 304
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names cluster features and kdbush but no files or tests. Start by tracing how cluster feature properties are generated and review whether kdbush exposes the requested distance information. Done means exposing a reliable property that identifies clusters whose included geometries share coordinates, with behavior suitable for Mapbox markers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100