Ordering of layers is wrong in the new vector tiles

At this location: OpenStreetMap the highway is rendered on top of the overpass in Shortbread:

In the standard and other styles it is correct, except for MapTiler OMT, which looks similar to the Shortbread. (I cannot post another screenshot because my account is new.)

As far as I can tell, the map data is correct, the highway is layer 1 while the overpass is layer 2. Is this a bug in the vector style?

I just realized that it might be because the lane on the left turns into a bridge just south of the overpass, while the right lane becomes a bridge slightly to the north, and the bridge is apparently rendered on top of the overpass even if it is on a layer below it.

1 Like

Layer ordering is a long-standing issue with vector tiles and not yet practically solved (aside from some ugly hacks). It really needs client support in the MapLibre renderer and there are active tickets for that:

3 Likes