Browse Source

pt_amenities: include aerodromes

heritage
parent
commit
c5b20cd33a
  1. 30
      pt_amenities.json

30
pt_amenities.json

@ -15,16 +15,35 @@
"uk": "Amenities" "uk": "Amenities"
}, },
"query": { "query": {
"14": [
"8": [
"(",
"nwr[aeroway=aerodrome]['aerodrome:type'~'(international)'];",
")"
],
"10": [
"(",
"nwr[aeroway=aerodrome]['aerodrome:type'~'(international|regional|public)'];",
")"
],
"12": [
"(",
"nwr[aeroway=aerodrome];",
")"
],
"16": [
"(", "(",
"nwr[amenity~\"^(taxi|ticket_counter)$\"];", "nwr[amenity~\"^(taxi|ticket_counter)$\"];",
"nwr[railway~\"^(subway_entrance)$\"];", "nwr[railway~\"^(subway_entrance)$\"];",
"nwr[aeroway=aerodrome];",
")" ")"
] ]
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% if tags.railway == 'subway_entrance' %}",
"{% if tags.aeroway == 'aerodrome' %}",
" {% set key = 'aeroway' %}",
" {% set value = tags.aeroway %}",
"{% elseif tags.railway == 'subway_entrance' %}",
" {% set key = 'railway' %}", " {% set key = 'railway' %}",
" {% set value = tags.railway %}", " {% set value = tags.railway %}",
"{% else %}", "{% else %}",
@ -32,12 +51,13 @@
" {% set value = tags.amenity %}", " {% set value = tags.amenity %}",
"{% endif %}" "{% endif %}"
], ],
"description": "{{ tagTrans(key, value) }}",
"markerSign": "{{ const[value] }}"
"description": "{{ debug(key, value) }}{{ tagTrans(key, value) }}",
"markerSign": "{{ const[value]|raw }}"
}, },
"const": { "const": {
"taxi": "🚖", "taxi": "🚖",
"ticket_counter": "🎫", "ticket_counter": "🎫",
"subway_entrance": "🚉"
"subway_entrance": "🚉",
"aerodrome": "<i class='fas fa-plane-departure'></i>"
} }
} }
Loading…
Cancel
Save