mapbox / mapbox/mapbox-gl-js

When toggling to globe view at a high zoom, heatmap sometimes disappears in and out while zooming

Open
#12,161 5 comments 0 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: 2.9.0 +

browser: All

Steps to Trigger Behavior
  1. Open a map with heatmap and mercator projection
  2. Zoom in past zoom level 5
  3. Run map.setProjection('globe')
  4. Zoom in and out and notice heatmap disappearing and reappearing
Expected Behavior

Expect heatmap to not disappear while zooming. Should be same behavior if runnning map.setProjection('globe) at a low zoom level on a map with heatmap (this works as expected).

Actual Behavior

https://user-images.githubusercontent.com/42715836/184214565-99e5cfda-e95d-47cd-bd94-2c54a229f091.MP4

Heatmap disappears while zooming in and out

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

Reproduce the issue with mapbox-gl-js 2.9.0 or later using a mercator map with a heatmap, then call map.setProjection('globe') after zooming past level 5. Compare zooming behavior with the same projection change at a low zoom level; done means the heatmap remains visible while zooming in and out in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
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.