globe projection zoom out from `GLOBE_ZOOM_THRESHOLD_MAX` to 5.9 repaint symbol disappeared about 200 ms
Nobody has claimed this yet.
- 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;
- zoom greater than GLOBE_ZOOM_THRESHOLD_MAX

- zoom out, let map zoom becomes less than GLOBE_ZOOM_THRESHOLD_MAX ( like 5.99)

- It disappeared for a short time (more than about 100~200ms?) and then reappeared.
- 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
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
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