Take markers into account when performing symbol placement
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
I just had a look at Apple's MapKit JS that seems to do this:
1. Go to https://developer.apple.com/maps/web/
2. Find the "Draggable Annotations" example at the bottom of the page
3. Force-click then drag the red marker to move it
4. Observe colliding labels disappear at the marker's new location.
This probably involves measuring the extent of the marker's container element and using it as an "exclusion zone" when performing symbol placement.
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 no repository files, tests, or entry points. Start by reproducing the Apple MapKit JS “Draggable Annotations” example and compare its behavior with mapbox-gl-js symbol placement; done means colliding labels disappear when a marker moves into their area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100