mapbox / mapbox/mapbox-gl-js

Severe Label Flickering When Switching Between Light and Dark Modes Using `lightPreset`

Open
#13,643 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

Here is the official demo link: https://docs.mapbox.com/help/demos/map-design/standard-style.html
The default style used is "standard-beta," and there is no flickering when switching the lighting.

https://github.com/user-attachments/assets/1645dcd1-4fa6-4da7-aa59-f76458145255

However, when I set the style to "standard," flickering occurs when switching the lighting. This flickering was not quite as severe in version 3.14.0.

https://github.com/user-attachments/assets/39e01f17-5981-4ec3-80fe-d29987b80267

When I upgraded the map version to 3.20.0, the flickering during lighting switches became extremely severe.

https://github.com/user-attachments/assets/0731a3b2-c244-4628-9f8f-f312bc701f90

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 linked official demo and compare the “standard” and “standard-beta” styles while switching lightPreset values. Reproduce the flickering on mapbox-gl-js 3.20.0 and compare it with 3.14.0; done means identifying and preventing the regression without changing the expected lighting transition.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.