From 712263f8a5a02812f36580d5fe2bbd7d4753f253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 8 Oct 2023 21:34:48 +0200 Subject: [PATCH] footways: include multipolygons --- footways.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/footways.yaml b/footways.yaml index 098b62a..631da51 100644 --- a/footways.yaml +++ b/footways.yaml @@ -6,7 +6,7 @@ query: way[footway]; way["area:highway"~"^(footway|pedestrian|steps|path|platform|sidewalk)$"]; relation["area:highway"~"^(footway|pedestrian|steps|path|platform|sidewalk)$"]; - way[sidewalk~"^(yes|both|left|right|no|separate|none)$"]; + relation[type=multipolygon]["highway"~"^(footway|pedestrian|steps|path|platform|sidewalk)$"]; way[sidewalk~"^(yes|both|left|right|no|separate|none)$"]; way["sidewalk:left"~"(yes|no|separate)$"]; way["sidewalk:right"~"(yes|no|separate)$"]; way["sidewalk:both"~"(yes|no|separate)$"]; @@ -204,7 +204,7 @@ feature: markerSymbol: "" listMarkerSymbol: | - {% if tags.area == 'yes' or attribute(tags, 'area:highway') %} + {% if tags.area == 'yes' or tags.type == 'multipolygon' or attribute(tags, 'area:highway') %} polygon {% elseif 'node' in sides %} {{ markerCircle({ width: 0, radius: 5, fillOpacity: 1, fill: true, color: const.categories[category].color }) }} @@ -270,11 +270,11 @@ feature: {{ const.categories[category].color }} style:main: fill: | - {% if tags.area == 'yes' or attribute(tags, 'area:highway') %}true{% else %}false{% endif %} + {% if tags.area == 'yes' or tags.type == 'multipolygon' or attribute(tags, 'area:highway') %}true{% else %}false{% endif %} width: | {% if attribute(tags, 'area:highway') %} 0 - {% elseif tags.area == 'yes' %} + {% elseif tags.area == 'yes' or tags.type == 'multipolygon' %} 1 {% elseif cycleway and tags.segregated == 'yes' %} 3