From a4a9d94237159efd64eeac0554d75964dca0e0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 13 Jul 2024 08:34:37 +0200 Subject: [PATCH] cycleway_width: arrows for oneway cycleways --- cycleway_width.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/cycleway_width.yaml b/cycleway_width.yaml index b2107ba..717ae3e 100644 --- a/cycleway_width.yaml +++ b/cycleway_width.yaml @@ -19,6 +19,30 @@ feature: {{ colorInterpolate(const.colorScheme, (width - minWidth) / (optWidth - minWidth)) }} {% else %}black {% endif %} + lineCap: | + {{ tags.oneway in ['yes', 1, -1] ? 'butt' : 'round' }} + dashArray: | + {{ tags.oneway in ['yes', 1, -1] ? '27,8' : '' }} + dashOffset: | + {{ tags.oneway in [-1] ? 28 : 0 }} + noClip: | + {{ tags.oneway in ['yes', 1, -1] }} + pattern: | + {% if tags.oneway in ['yes', 1, -1] %}arrowHead{% endif %} + pattern-offset: | + {{ tags.oneway in [-1] ? 4 : 30.5 }} + pattern-repeat: 35 + pattern-polygon: true + pattern-pixelSize: 9 + pattern-angleCorrection: | + {{ tags.oneway in [-1] ? 180 : 0 }} + pattern-path-width: 0 + pattern-path-color: | + {% if width %} + {{ colorInterpolate(const.colorScheme, (width - minWidth) / (optWidth - minWidth)) }} + {% else %}black + {% endif %} + pattern-path-fillOpacity: 1 markerSymbol: false listMarkerSymbol: line description: |