From ba35dc1d73fbc5195bb8dac0bcb8fb5d59a0feec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 1 Dec 2024 08:30:11 +0100 Subject: [PATCH] cycleway_types: improve bridge rendering --- cycleway_types.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cycleway_types.yaml b/cycleway_types.yaml index 2ac1ced..4cfad6c 100644 --- a/cycleway_types.yaml +++ b/cycleway_types.yaml @@ -82,7 +82,7 @@ feature: styles: | {% if tags.bridge and tags.bridge != 'no' %} - bridge, + bridge_outer,bridge_inner, {% endif %} {% if const.otherInfrastructure[tags.cycleway|default(tags.path)] %} @@ -303,11 +303,19 @@ feature: zIndex: |- {{ tags.layer|default(0) - 0.1 }} - style:bridge: + style:bridge_outer: width: | - {{ const.types[type].width|default(5) + 4 }} + {{ const.types[type].width|default(5) + 8 }} color: black lineCap: butt + zIndex: |- + {{ tags.layer|default(0) - 0.21 }} + + style:bridge_inner: + width: | + {{ const.types[type].width|default(5) + 4 }} + color: white + lineCap: butt zIndex: |- {{ tags.layer|default(0) - 0.2 }}