mapbox / mapbox/mapbox-gl-js

Markers don't account for globe-to-mercator transition

Open
#11,861 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When dragging a marker during the transition, it snaps not at the visible horizon, but at where the horizon would be were the map in globe.

https://user-images.githubusercontent.com/14878684/167180703-a5a49891-d3fb-4d8f-8e18-10fef3d457aa.mov

If a marker is placed just past the horizon, it disappears during the transition only to reappear once the map is fully in Mercator.

https://user-images.githubusercontent.com/14878684/167181059-38ffe88a-1c71-4dc9-9e9d-09c96f3fa5ae.mov

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 reproducing the marker-drag and marker-visibility behavior during the globe-to-Mercator transition using the attached videos as reference. Trace the marker horizon and projection handling, then verify that snapping and visibility follow the visible horizon throughout the transition.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.