mapbox / mapbox/supercluster

Feature request: get zoom level at which the marker is unclustered

Open
#193 7 comments 8 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

There's the `getClusterExpansionZoom` which gives the zoom level at which the existing cluster is breaking into more clusters/markers.

It would be handy to be able to zoom into a marker so it appears unclustered. The use case for this is when I select an entity related to the marker outside of the map and I need to focus on the marker in case it's out of bounds or clustered.

Or is there a way to do this with the existing methods?

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

Start by reviewing the existing getClusterExpansionZoom method and related public methods to understand how zoom levels are calculated. Determine how the requested marker-level behavior should fit the API, and consider the existing issue discussion before defining completion as returning a zoom level at which the selected marker is unclustered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.