Browse Source

footways: support sidewalk=separate

parking-lanes
parent
commit
db2d0d39a7
  1. 8
      footways.yaml

8
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|none)$"];
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)$"];
@ -56,6 +56,12 @@ feature:
{% set sides = sides|merge(['leftr', 'rightr']) %}
{% endif %}
{% if tags.sidewalk == 'separate' %}
{% set sidewalk_left = 'separate' %}
{% set sidewalk_right = 'separate' %}
{% 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']) %}

Loading…
Cancel
Save