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

When using 3D Terrain raster layers with an id starting with a NUMBER forces the layer order to the bottom #13167

Open
KleggerKoder opened this issue May 6, 2024 · 2 comments

Comments

@KleggerKoder
Copy link

KleggerKoder commented May 6, 2024

mapbox-gl-js version: 3.3.0

browser: android mobile webview / Chrome

Steps to Trigger Behavior

1.Use Mapbox Terrain-DEM v1
2.Add an initial raster layer that should be on the bottom with an id starting with a string id:"A5000". Then add another layer that should appear on top with an id that begins with a number ie id: "5001"
3.The second layer that should have been on top is now underneath the layer id:"A5000".
4. mapbox.setTerrain(null); will correct the layering problem

Link to Demonstration

Expected Behavior

Layers with id's that begin with a NUMBER should respect layer ordering when using 3D Terrian.

Actual Behavior

Layers with id's that begin with a number are pushed to the bottom of the layer ordering in 3D Terrain mode.

@KleggerKoder
Copy link
Author

Using the newley impletmented slots also does not resolve the layering problem

@KleggerKoder
Copy link
Author

Narrowed down breaking change. working in V2.15 broken in V3.1.2

@KleggerKoder KleggerKoder changed the title When using 3D Terrain raster layer ordering is no longer respected When using 3D Terrain raster layers with an id starting with a NUMBER forces the layer order to the bottom May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant