mapbox / mapbox/mapbox-gl-js

Take markers into account when performing symbol placement

Open
#13,199 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple: needs discussion :speech_balloon:
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.