openstreetmap-carto-de icon indicating copy to clipboard operation
openstreetmap-carto-de copied to clipboard

Motorway casing of bridge rendered above adjacent fill

Open nrenner opened this issue 5 years ago • 3 comments

Expected behavior

The normal casing for motorway bridges (not the black bridge casing) should be rendered below regular motorway fill.

Actual behavior

It seems that casing for motorway bridges is rendered above regular motorway fill, it crosses the fill of adjacent motorway lines at the ends of the bridge line and thus the inner motorway line is interrupted by casing at the start and end of a bridge.

Links and screenshots illustrating the problem

image

https://www.openstreetmap.de/karte.html?zoom=18&lat=48.25238&lon=12.20842&layers=B000TF https://www.openstreetmap.org/way/333888896

nrenner avatar Nov 23 '19 12:11 nrenner

Motorway and trunk overlays (the yellow and white lines) are drawn at line 2540 of roads.mss. Try moving this code block and see if this works. Use ./scripts/render_single_tile.py for a test. I know about this issue. If you have an easy fix just send a pull request.

giggls avatar Nov 24 '19 15:11 giggls

I had a look at this more closely. Unfortunately this is not a matter of layering. Motorway fill is rendered as a line with rounded ends to avoid gaps line-cap: round;

Unfortunately this means, that the overlays in German style will not be long enough.

I have no idea if there is a way to extend a line before rendering it which is what would be needed in this case.

giggls avatar Nov 24 '19 16:11 giggls

Thanks that you had a look.

I just assumed a layering issue based on how it looks, but I don't have a fix. I would find it interesting to dig into this, but already have too many other loose ends right now.

And thanks for maintaining the style and the servers!

nrenner avatar Nov 26 '19 17:11 nrenner