mapbox / mapbox/mapbox-gl-js

globe projection zoom out from `GLOBE_ZOOM_THRESHOLD_MAX` to 5.9 repaint symbol disappeared about 200 ms

Open
#12,100 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mapbox-gl-js version: latest 2.9.2

browser: Chroium Edge 102
CPU: AMD Ryzen 5 4500U with Radeon Graphics 2.38 GHz

Steps to Trigger Behavior

src\geo\projection\globe_util.js

export const GLOBE_ZOOM_THRESHOLD_MIN = 5;
export const GLOBE_ZOOM_THRESHOLD_MAX = 6;
  1. zoom greater than GLOBE_ZOOM_THRESHOLD_MAX image
  2. zoom out, let map zoom becomes less than GLOBE_ZOOM_THRESHOLD_MAX ( like 5.99)
    image
  3. It disappeared for a short time (more than about 100~200ms?) and then reappeared.
  4. But globe to mercator (5.99 to 6.01) has no this problem.
Link to Demonstration

https://docs.mapbox.com/mapbox-gl-js/example/globe/

Expected Behavior

Symbol shows Like Steps 4

Actual Behavior

Symbol disappeared 300ms

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 issue in the globe example at https://docs.mapbox.com/mapbox-gl-js/example/globe/ and inspect src/geo/projection/globe_util.js, especially the GLOBE_ZOOM_THRESHOLD_MIN and GLOBE_ZOOM_THRESHOLD_MAX transition. Compare zooming from above 6 to below 6 with the reverse transition. Done means symbols remain visible during both projection changes without the reported 100–300 ms disappearance.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.