Open joshkautz opened 1 year ago
Thanks for the reproduction @joshkautz. Can confirm this isn't occurring if I switch the projection to "mercator" in your example.
@joshkautz The issue you're describing may be resolved by setting: optimizeForTerrain: false
, which can be set as a map parameter. Search the keyword "optimizeForTerrain" in the docs here.
Please let us know if this resolves the issue! If not, it appears the example you provided no longer demonstrates the issue at hand. If you can provide an additional minimal code reproduction of the issue that would be helpful.
My apologies for that. I've updated the demo and locked it so it'll remain working.
This demo is using react-map-gl, so I don't know if that is at all related to the behavior that we're experiencing.
As you recommended, I tried adding the optimizeForTerrain
setting and changing it between true and false, but I can confirm that this makes no difference for both globe
and mercator
projection modes. From what I can tell, this demo works perfectly when I have mercator
mode selected, but as soon as I change it to globe
mode, the layer issues begin immediately.
I also recently noticed that the symbol layer displays briefly, then disappears, as do all the other style layers from the default map style (like roads, labels, etc). Just an observation.
Thanks for all the information @joshkautz! We will look into this. If it is possible to provide an additional example without react-map-gl, just a simple mapbox-gl-js setup that would help aid our investigation to this issue.
Hi @avpeery. Is there any update on this?
I believe I am experiencing this as well. See video...
https://github.com/user-attachments/assets/6f58cf58-f861-4cb2-a762-c4699e697b09
The projection is globe
and the 3d terrain is enabled (See screenshot of terrain exaggeration)
When I run map.setTerrain()
disabling the terrain it fixes the problem
All symbol placement properties are default in mapbox studio (2nd screenshot)
mapbox-gl-js version: 2.11.1 and 2.12.0-beta.1
browser: Google Chropme [Version 108.0.5359.125 (Official Build) (64-bit)]
Steps to Trigger Behavior
Link to Demonstration
CodeSandbox Demo
Expected Behavior
I would expect the Layer of Symbols to render on top of the 3D Terrain.
Actual Behavior
The Layer of Symbols actually sometimes renders behind the 3D Terrain, or sometimes doesn't display at all.