gravitystorm / openstreetmap-carto

A general-purpose OpenStreetMap mapnik style, in CartoCSS
Other
1.51k stars 811 forks source link

Motorcross racetrack does not scale well #4815

Open BertMule opened 1 year ago

BertMule commented 1 year ago

A track like the one below does not scale well. The thickness seems to stay the same at various zoom levels, resulting in one pink blob at a lower level.

https://www.openstreetmap.org/#map=18/51.44249/4.85925

imagico commented 1 year ago

The line width progression for highway=raceway is a bit non-uniform - see

https://github.com/gravitystorm/openstreetmap-carto/blob/dae7527d6d530e9ea650bd0bb0e761faaa5c9cad/style/roads.mss#L2207-L2212

In the ac-style i changed that to

https://github.com/imagico/osm-carto-alternative-colors/blob/83cb6ec225a38c086838fe17fa1352cfcab5d14e/line-widths.yaml#L316-L323

which could be adopted here. The overlap between close neighboring parts of a track like this is inevitable with this kind of depiction of roads at lower zoom levels.

jeisenbe commented 1 year ago

Part of the problem is the lack of casing for raceway, though it would add complexity to change.

BertMule commented 1 year ago

Thanks for investigating.

imagico commented 1 year ago

Related to #4820. The width progression adjustment would be a relatively simple change.