Browse Source

footways: improvements

- highway=platform
- sidewalk=no
- improved label for sidewalk=* in map info
pedestrian
parent
commit
905f4b7b16
  1. 14
      footways.yaml

14
footways.yaml

@ -1,7 +1,7 @@
query: query:
15: | 15: |
( (
way[highway~"^(footway|pedestrian|steps|path)$"];
way[highway~"^(footway|pedestrian|steps|path|platform)$"];
way[highway=cycleway][foot~"^(yes|designated)$"]; way[highway=cycleway][foot~"^(yes|designated)$"];
way[footway]; way[footway];
way[sidewalk~"^(yes|both|left|right|no|none)$"]; way[sidewalk~"^(yes|both|left|right|no|none)$"];
@ -21,7 +21,7 @@ feature:
{% set category = 'sidewalk' %} {% set category = 'sidewalk' %}
{% endif %} {% 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']) %} {% set sides = sides|merge(['main']) %}
{% endif %} {% endif %}
@ -40,6 +40,12 @@ feature:
{% set category = 'crossing' %} {% set category = 'crossing' %}
{% endif %} {% 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') %} {% if attribute(tags, 'sidewalk:both') %}
{% set sidewalk_left = attribute(tags, 'sidewalk:both') %} {% set sidewalk_left = attribute(tags, 'sidewalk:both') %}
{% set sides = sides|merge(['leftr', 'rightr']) %} {% set sides = sides|merge(['leftr', 'rightr']) %}
@ -281,8 +287,8 @@ info: |
<td>{{ markerLine({ <td>{{ markerLine({
styles: d.styles, styles: d.styles,
'style:leftr': { 'style:leftr': {
width: 7,
offset: -2.5,
width: 9,
offset: -1,
opacity: 0.3, opacity: 0.3,
dashArray: '1,10', dashArray: '1,10',
lineCap: butt, lineCap: butt,

Loading…
Cancel
Save