mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Dusk lightPreset doesn't work correctly while zooming in a specific area

Open MykolaYevtushenko opened this issue 3 months ago • 4 comments

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

MykolaYevtushenko avatar Mar 18 '24 11:03 MykolaYevtushenko