Browse Source

buildings-type: military buildings

- interpret buildings with building=yes and military=* as building=military, military=*
- for military buildings, write type in brackets (e.g. "Military (Barracks)")
pedestrian
parent
commit
8451d9b5d3
  1. 13
      buildings-type.json

13
buildings-type.json

@ -12,6 +12,7 @@
"feature": { "feature": {
"pre": [ "pre": [
"{% set type = tags.building|split(';')[0] %}", "{% set type = tags.building|split(';')[0] %}",
"{% if tags.military %}{% set type = 'military' %}{% endif %}",
"{% set color = const.other.color %}", "{% set color = const.other.color %}",
"{% for cat, data in const %}", "{% for cat, data in const %}",
" {% if type in data.types %}", " {% if type in data.types %}",
@ -20,13 +21,18 @@
"{% endfor %}" "{% endfor %}"
], ],
"description": [ "description": [
"{% if tags.building == 'yes' %}",
"{% if tags.building == 'yes' and tags.military %}",
"{{ tagTrans('building', 'military') }}",
"{% elseif tags.building == 'yes' %}",
"{{ keyTrans('building') }}", "{{ keyTrans('building') }}",
"{% else %}", "{% else %}",
"{{ tagTransList('building', tags.building) }}", "{{ tagTransList('building', tags.building) }}",
"{% endif %}", "{% endif %}",
"{% if tags.building == 'construction' and tags.construction %}", "{% if tags.building == 'construction' and tags.construction %}",
"({{ tagTransList('building', tags.construction) }})", "({{ tagTransList('building', tags.construction) }})",
"{% endif %}",
"{% if tags.building in [ 'yes', 'military' ] and tags.military %}",
"({{ tagTransList('military', tags.military) }})",
"{% endif %}" "{% endif %}"
], ],
"markerSymbol": "", "markerSymbol": "",
@ -213,10 +219,11 @@
] ]
}, },
"military": { "military": {
"name": "tag:military",
"name": "tag:building=military",
"color": "#4a7300", "color": "#4a7300",
"types": [ "types": [
"bunker"
"bunker",
"military"
] ]
}, },
"unspecified": { "unspecified": {

Loading…
Cancel
Save