From 2a47c93b10f57bb1202a6d8a10d4fabf02fe1e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 26 Feb 2018 21:39:19 +0100 Subject: [PATCH] Cycle Directions: improvements --- cycle_directions.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cycle_directions.json b/cycle_directions.json index 19cc33a..f7df15e 100644 --- a/cycle_directions.json +++ b/cycle_directions.json @@ -11,6 +11,7 @@ "way[cycleway];", "way[\"cycleway:left\"];", "way[\"cycleway:right\"];", + "way[oneway];", ")" ] }, @@ -27,9 +28,18 @@ "listMarkerSymbol": "line", "styles": "default,left,right", "style": { + "width": [ + "{% if tags.highway == 'cycleway' %}", + "3", + "{% else %}", + "7", + "{% endif %}" + ], "color": [ "{% if tags.highway == 'cycleway' %}", "#007f00", + "{% else %}", + "#ffffff7f", "{% endif %}" ], "text": [ @@ -78,7 +88,9 @@ "{% elseif driving_side == 'left' and oneway >= 0 and tags.cycleway in [ 'opposite_lane', 'opposite_track' ] %}", "🡪 ", "{% endif %}" - ] + ], + "textRepeat": "1", + "textOffset": "0" }, "style:right": { "color": [ @@ -103,7 +115,9 @@ "{% elseif driving_side == 'left' and oneway <= 0 and tags.cycleway in [ 'opposite_lane', 'opposite_track' ] %}", "🡪 ", "{% endif %}" - ] + ], + "textRepeat": "1", + "textOffset": "0" } }, "info": [