From 905f4b7b168b8f1411fd730604005d3c0ff2f49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 17 Oct 2022 22:05:45 +0200 Subject: [PATCH] footways: improvements - highway=platform - sidewalk=no - improved label for sidewalk=* in map info --- footways.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/footways.yaml b/footways.yaml index 0878759..411f891 100644 --- a/footways.yaml +++ b/footways.yaml @@ -1,7 +1,7 @@ query: 15: | ( - way[highway~"^(footway|pedestrian|steps|path)$"]; + way[highway~"^(footway|pedestrian|steps|path|platform)$"]; way[highway=cycleway][foot~"^(yes|designated)$"]; way[footway]; way[sidewalk~"^(yes|both|left|right|no|none)$"]; @@ -21,7 +21,7 @@ feature: {% set category = 'sidewalk' %} {% endif %} - {% if tags.highway in ['pedestrian', 'footway','steps','path','cycleway'] %} + {% if tags.highway in ['pedestrian', 'footway','steps','path','cycleway','platform'] %} {% set sides = sides|merge(['main']) %} {% endif %} @@ -40,6 +40,12 @@ feature: {% set category = 'crossing' %} {% endif %} + {% if tags.sidewalk in ['no', 'none'] %} + {% set sidewalk_left = 'no' %} + {% set sidewalk_right = 'no' %} + {% set sides = sides|merge(['leftr', 'rightr']) %} + {% endif %} + {% if attribute(tags, 'sidewalk:both') %} {% set sidewalk_left = attribute(tags, 'sidewalk:both') %} {% set sides = sides|merge(['leftr', 'rightr']) %} @@ -281,8 +287,8 @@ info: | {{ markerLine({ styles: d.styles, 'style:leftr': { - width: 7, - offset: -2.5, + width: 9, + offset: -1, opacity: 0.3, dashArray: '1,10', lineCap: butt,