From 36ca0e95fdb9d6a786687769f40be6e0916f4e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 17 Dec 2018 21:56:11 +0100 Subject: [PATCH] buildings-type: support multi values; exclude building=no --- buildings-type.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/buildings-type.json b/buildings-type.json index 8ebe352f..9536d62f 100644 --- a/buildings-type.json +++ b/buildings-type.json @@ -7,16 +7,17 @@ "query": { "16": [ "(", - " way[building];", - " relation[building];", + " way[building][building!=no];", + " relation[building][building!=no];", ")" ] }, "feature": { "pre": [ + "{% set type = tags.building|split(';')[0] %}", "{% set color = const.other.color %}", "{% for cat, data in const %}", - " {% if tags.building in data.types %}", + " {% if type in data.types %}", " {% set color = data.color %}", " {% endif %}", "{% endfor %}" @@ -25,7 +26,7 @@ "{% if tags.building == 'yes' %}", "{{ keyTrans('building') }}", "{% else %}", - "{{ tagTrans('building', tags.building) }}", + "{{ tagTransList('building', tags.building) }}", "{% endif %}" ], "priority": [