getClusters returns 0 or 1 points when given 2
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 304
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to represent random points on a map using superclusters and mapbox.
I ran into an issue while testing for the two points: [ -60.44, -1.77] and [-55.44, -5.77]; running getClusters with a supercluster instance set up as follows:
const index = new Supercluster({
log: true,
radius: 20,
extent: 256,
maxZoom: 3
})
Returns a single point (not cluster of 2) at zoom > 5
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
Start by reproducing getClusters with the two coordinates and the shown Supercluster options, including the reported zoom levels. Then inspect the clustering implementation and determine why two points produce zero or one result; done means the behavior is explained and a focused regression test confirms the expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100