mapbox / mapbox/supercluster

Feature Request: Cluster property about feature distance

Open
#211 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.