mapbox / mapbox/mapbox-gl-js

Markers shift slightly when the map is double clicked

Open
#13,351 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

When a user is using a map with custom markers, the markers shift slightly when the map is double clicked. This is most visible when the map has a fixed zoom or is at its highest zoom level.

**mapbox-gl-js version**: Latest

**browser**: Any (Tested with Chromium + Firefox)

### Steps to Trigger Behavior

1. Zoom into the highest zoom level (or a use a map with fixed zoom)
2. Double click on the map
3. Markers sometimes shake slightly

### Link to Demonstration
This can be seen by using the custom-markers demo. (see below video)

### Expected Behavior
https://github.com/user-attachments/assets/7250fed0-3b62-4e1e-b851-2a68f9f50b70
https://github.com/user-attachments/assets/1ecad5c0-9133-4cfa-946f-34623b88225e

### Actual Behavior
https://github.com/user-attachments/assets/85cf749d-b01c-414d-8f1b-05580dfea41e
https://github.com/user-attachments/assets/0f9666e4-8287-4068-aaac-0b4540d0c305

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 with the custom-markers demo mentioned in the issue and reproduce the behavior at the highest zoom level or with fixed zoom by double-clicking the map. Compare the marker movement with the expected and actual behavior videos. Done means custom markers remain stable after the double click.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.