Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggling 3d terrain causes render order issues #10997

Open
kbrownlees opened this issue Sep 7, 2021 · 1 comment
Open

Toggling 3d terrain causes render order issues #10997

kbrownlees opened this issue Sep 7, 2021 · 1 comment
Assignees

Comments

@kbrownlees
Copy link

mapbox-gl-js version: 2.4.1

browser: Chrome 93 / Firefox 92

Steps to Trigger Behavior

  1. Open provided jsbin
  2. Wait for 10 seconds while the script disables & re-enables terrain
  3. Scroll in / out & move around an observe flashing / render issues. It is possible to get permanent render order issues as per linked screenshot but can be tricky.

Link to Demonstration

https://output.jsbin.com/jiticep

Expected Behavior

I should be able to toggle the terrain layer as many times as I wish and the behaviour should not change.

Actual Behavior

After the terrain layer has been enabled once, disabling it then enabling it again causes render order issues. In the linked example there is a incomplete raster tileset (with lots of partial tiles) which seems to make this issues much more likely to occur. But I have reproduced it with just the satellite layer so I it doesn't seem that is the only reason it occurs.

In our actual application we are updating the map a lot more so we get a consist flicker of the tiles:

Kapture 2021-09-08 at 08 58 23

Screenshot from jsbin showing ordering issues which don't go away:

image

@ryanhamley
Copy link
Contributor

This appears to be a regression introduced by #10611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants