Open ArmandBahi opened 3 months ago
Hey @ArmandBahi,
I'm a bit confused. Could you please explain a bit more what you mean by "is messing up with buildings"?
Just so you know, during 3D globe and terrain rendering, GL JS aims to batch multiple layers together for optimal performance. This process might lead to a rearrangement of layers. Layers draped over the globe and terrain, such as fill, line, background, hillshade, and raster, are rendered first. These layers are rendered underneath symbols, regardless of whether they are placed in the middle or top slots or without a designated slot
By "is messing up with buildings" I mean this, it looks like the building shadow hides part of the linestring
Got it, thanks!
mapbox-gl-js version: v3.4.0 / v3.5.0-beta.1
browser: All chromium & Firefox
Steps to Trigger Behavior
Screenshots
On the left is the slot=middle feature and the problem occurs on the right hand feature with slot=top
Link to Demonstration
Put your access token ;) https://jsfiddle.net/ArmandBahi/0afktyqv/5/
Description
I've added two layers, the first with slot=top and the second with slot=middle as below
When doing this the slot=top layer is messing up with buildings.
I've also notice that if I add the slot=middle before slot=top then I do not have the problem