Browse Source

buildings-type: support multi values; exclude building=no

buildings
parent
commit
36ca0e95fd
  1. 9
      buildings-type.json

9
buildings-type.json

@ -7,16 +7,17 @@
"query": { "query": {
"16": [ "16": [
"(", "(",
" way[building];",
" relation[building];",
" way[building][building!=no];",
" relation[building][building!=no];",
")" ")"
] ]
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% set type = tags.building|split(';')[0] %}",
"{% set color = const.other.color %}", "{% set color = const.other.color %}",
"{% for cat, data in const %}", "{% for cat, data in const %}",
" {% if tags.building in data.types %}",
" {% if type in data.types %}",
" {% set color = data.color %}", " {% set color = data.color %}",
" {% endif %}", " {% endif %}",
"{% endfor %}" "{% endfor %}"
@ -25,7 +26,7 @@
"{% if tags.building == 'yes' %}", "{% if tags.building == 'yes' %}",
"{{ keyTrans('building') }}", "{{ keyTrans('building') }}",
"{% else %}", "{% else %}",
"{{ tagTrans('building', tags.building) }}",
"{{ tagTransList('building', tags.building) }}",
"{% endif %}" "{% endif %}"
], ],
"priority": [ "priority": [

Loading…
Cancel
Save