From 3f843459a868c05006024fabf5f894c3e9229f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 30 Nov 2024 08:09:45 +0100 Subject: [PATCH] cycleway_types: indicate crossings and bridges --- cycleway_types.yaml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/cycleway_types.yaml b/cycleway_types.yaml index e995ada..8a29677 100644 --- a/cycleway_types.yaml +++ b/cycleway_types.yaml @@ -33,7 +33,8 @@ feature: {% set leftCycle = '' %}{% set rightCycle = '' %} {% if tags.cycleway %} - {% if (tags.oneway in ['yes', 1] and map.driving_side == 'right') or (tags.oneway in [-1] and map.driving_side == 'left') %} + {% if tags.cycleway in ['crossing'] %} + {% elseif (tags.oneway in ['yes', 1] and map.driving_side == 'right') or (tags.oneway in [-1] and map.driving_side == 'left') %} {{ tags.cycleway|debug }} {% if tags.cycleway matches '/^opposite/' %} {% set leftCycle = tags.cycleway %} @@ -79,6 +80,14 @@ feature: {% endif %} styles: | + {% if tags.bridge and tags.bridge != 'no' %} + bridge, + {% endif %} + + {% if tags.cycleway in ['crossing'] or tags.path in ['crossing'] %} + crossing, + {% endif %} + {% if tags.segregated %} footway, {% endif %} @@ -266,6 +275,21 @@ feature: pattern-path-fillOpacity: 1 + style:crossing: + width: | + {{ const.types[type].width + 4 }} + color: black + lineCap: butt + dashArray: "4,4" + zIndex: -0.1 + + style:bridge: + width: | + {{ const.types[type].width|default(5) + 4 }} + color: black + lineCap: butt + zIndex: -0.2 + description: | {% if tags.cyclestreet == 'yes' %} {{ keyTrans('cyclestreet') }} @@ -279,7 +303,11 @@ feature: body: |