Wrong layers order, depends on zoom level (starting in v5.0.0) #5305
Replies: 10 comments
-
Is it possible to create a minimal reproduction in terms of the minimal amount of layers? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I mean a reproduction that has like 4-5 layers without the maptiler style at all if possible. Feel free to try and see if you can narrow down to the PR that created this issue, maybe we could better understand what might have caused this. |
Beta Was this translation helpful? Give feedback.
-
jsbin which reproduces the issue with the originally provided style: I wasn't able to reproduce it with other off-the-shelf styles e.g. example: https://jsbin.com/huyarum/edit?html,output |
Beta Was this translation helpful? Give feedback.
-
Re narrow-down to the PR which caused it: |
Beta Was this translation helpful? Give feedback.
-
I see |
Beta Was this translation helpful? Give feedback.
-
I apologize for the confusion, wasn't aware the style may also contain As I understand, mapTiler styles may include Also, what's the best approach to get this style to behave correctly? The only solution I can think of is to change my app to:
Is my understanding correct? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure, where is the style coming from? Can't you simply edit the style? |
Beta Was this translation helpful? Give feedback.
-
![]()
![]() |
Beta Was this translation helpful? Give feedback.
-
Yes, if the someone would like to color only multipolygons the above replacement won't work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
maplibre-gl-js version: 5.0.0
maplibre-gl-js version where issue doesn't exist: 4.7.1
browser:
Chrome Version 131.0.6778.205 (Official Build) (arm64) on macos
Safari Version 18.2 (20620.1.16.11.8)
Firefox 131.0.3 (aarch64) + 133.0.3 (aarch64)
Steps to Trigger Behavior
https://viewer-qa1.test.mapme.com/0684b9d9-9449-42f7-bb7d-f230b631f282
Chicago-1
andChicago-2
.Each location is associated with a different zoom level: 15 and 17 accordingly.
Chicago-1
, the map shows:Chicago-2
, the map shows:Expected Behavior
Actual Behavior
In more detail, the upper-left part of the screenshot (item 4 above) shows the unexpected behavior persists even when the map zoom is above 17.
Meaning, zooming in in some cases helps, however doesn't always "fix" the layers order for some tiles.
Link to Demonstration
https://viewer-qa1.test.mapme.com/0684b9d9-9449-42f7-bb7d-f230b631f282
Note:
This is a temporary url to mapme's testing environment.
It will show the issue for the next days following the creation of this ticket.
If access is required at a later point, pls sync with me at [email protected] (also Slack handle)
Style:
https://api.maptiler.com/maps/0bdca22c-7a7c-4d7f-8eb6-3e7a21469305/style.json?key=iH0qvXB6CpZUVu9oKlXL
Developers may use it for debug. This style will be terminated when no longer needed.
Console error
(possibly related)

Beta Was this translation helpful? Give feedback.
All reactions