From 388a7eea190d7682d7a6b11d662dbf435ff9cc50 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sat, 28 Oct 2017 21:41:42 +0200
Subject: [PATCH] New category: buildings

---
 buildings.json | 14 ++++++++++++++
 index.json     |  3 +++
 2 files changed, 17 insertions(+)
 create mode 100644 buildings.json

diff --git a/buildings.json b/buildings.json
new file mode 100644
index 0000000..7ad1807
--- /dev/null
+++ b/buildings.json
@@ -0,0 +1,14 @@
+{
+    "type": "overpass",
+    "name": {
+        "en": "Buildings",
+        "de": "Gebäude"
+    },
+    "query": {
+        "16": "(\n  way[building];\n  relation[building];\n)"
+    },
+    "feature": {
+        "priority": "{% set p = 100 %}\n{% if tags.name %}{% set p = p - 10 %}{% endif %}\n{% if tags.amenity %}{% set p = p - 1 %}{% endif %}\n{% if tags.historic %}{% set p = p - 1 %}{% endif %}\n{% if tags.culture %}{% set p = p - 1 %}{% endif %}\n{% if tags.highway %}{% set p = p - 1 %}{% endif %}\n{% if tags.railway %}{% set p = p - 1 %}{% endif %}\n{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}\n{% if tags.amenity %}{% set p = p - 1 %}{% endif %}\n{% if tags.tourism %}{% set p = p - 1 %}{% endif %}\n{{ p }}",
+        "markerSign": null
+    }
+}
diff --git a/index.json b/index.json
index 14f5e0d..c73a53e 100644
--- a/index.json
+++ b/index.json
@@ -257,6 +257,9 @@
                 },
                 {
                     "id": "works"
+                },
+                {
+                    "id": "buildings"
                 }
             ]
         },