Dusk lightPreset doesn't work correctly while zooming in a specific area
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Environment
mapbox-gl-js version: 3.2.0:
### Description
I'm using the dusk light preset for my map. And I have a problem with that. I have a certain area that is divided into sectors, each of which has a different background. When you click on a sector, its color becomes transparent. I do this by changing the state of the feature. And then when I started zooming the map, I started to see a flicker of color. For example, if the section was red at first, I clicked on it and it became transparent. And when I zoom in, it sometimes becomes red, when I zoom in again, it becomes transparent again, and so all the time. I changed the style from dusk to normal and everything works ok, no flickering. Also tried to change the map style from standard to normal, and everything works ok too. I tried creating an area in a completely different place and it works ok there, no flickering. What can this be connected with?
I think this is a bug with a dark preset in a specific area.
### Link to Demonstration
https://codesandbox.io/p/sandbox/dusk-preset-cfcn3p?file=%2Fsrc%2FApp.js%3A1%2C53
Video - https://streamable.com/u1rur4
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 with the linked CodeSandbox reproduction and compare zooming with the dusk light preset against the normal and standard styles. Reproduce the feature-state color change in the affected area and use the video as a reference; done means zooming no longer causes the sector color to flicker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100