Browse Source

walk_amenities: include conveying steps/footways, improve icons

sidewalks-category
Stephan Bösch-Plepelits 10 months ago
parent
commit
99a86877a1
  1. 19
      walk_amenities.yaml

19
walk_amenities.yaml

@ -6,6 +6,7 @@ query:
node[tourism~"^(viewpoint)$"]; node[tourism~"^(viewpoint)$"];
node[man_made~"^(cairn)$"]; node[man_made~"^(cairn)$"];
nwr[amenity~"^(shelter)$"]; nwr[amenity~"^(shelter)$"];
way[highway~'^(footway|steps)$'][conveying];
) )
'16': |- '16': |-
( (
@ -15,6 +16,7 @@ query:
node[man_made~"^(cairn)$"]; node[man_made~"^(cairn)$"];
nwr[amenity~"^(bench|shelter)$"]; nwr[amenity~"^(bench|shelter)$"];
node[leisure~"^(picnic_table)$"]; node[leisure~"^(picnic_table)$"];
way[highway~'^(footway|steps)$'][conveying];
) )
feature: feature:
pre: |- pre: |-
@ -33,6 +35,9 @@ feature:
{% elseif tags.tourism in [ 'viewpoint'] %} {% elseif tags.tourism in [ 'viewpoint'] %}
{% set key = 'tourism' %} {% set key = 'tourism' %}
{% set value = tags.tourism %} {% set value = tags.tourism %}
{% elseif tags.conveying and tags.highway %}
{% set key = 'highway' %}
{% set value = tags.highway ~ ' conveying' %}
{% else %} {% else %}
{% set key = 'highway' %} {% set key = 'highway' %}
{% set value = tags.highway %} {% set value = tags.highway %}
@ -53,15 +58,15 @@ filter:
show_default: true show_default: true
values: |- values: |-
{% for kv, d in const %} {% for kv, d in const %}
<option value='{{ kv }}' query='nwr[{{ kv }}]'>{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}</option>
<option value='{{ kv }}' query='{{ d.query|default("nwr[" ~ kv ~"]") }}'>{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}</option>
{% endfor %} {% endfor %}
const: const:
highway=crossing: highway=crossing:
priority: 10 priority: 10
sign: <i class='fa fa-bars' aria-hidden='true'></i>
sign: <img data-src='temaki:pedestrian_crosswalk'>
highway=elevator: highway=elevator:
priority: 2 priority: 2
sign: <i class='fa fa-caret-square-o-up' aria-hidden='true'></i>
sign: <img data-src='maki:elevator'>
information=guidepost: information=guidepost:
priority: 2 priority: 2
sign: <i class='fa fa-map-signs' aria-hidden='true'></i> sign: <i class='fa fa-map-signs' aria-hidden='true'></i>
@ -86,3 +91,11 @@ const:
amenity=shelter: amenity=shelter:
priority: 1 priority: 1
sign: <img data-src='maki:shelter'> sign: <img data-src='maki:shelter'>
highway=steps conveying:
sign: /
query: way[highway=steps][conveying]
priority: 2
highway=footway conveying:
sign: /
query: way[highway=footway][conveying]
priority: 2
Loading…
Cancel
Save