From f77e06e47979dc441a1f7dd74ee00f5bcebe9c91 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Fri, 9 Jun 2017 20:28:50 +0200
Subject: [PATCH] Categories as JSON files

---
 gastro.json |  6 ++++++
 parks.json  | 10 ++++++++++
 trees.json  | 18 ++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 gastro.json
 create mode 100644 parks.json
 create mode 100644 trees.json

diff --git a/gastro.json b/gastro.json
new file mode 100644
index 0000000..033fa31
--- /dev/null
+++ b/gastro.json
@@ -0,0 +1,6 @@
+{
+    "query": "(node[amenity~'^(restaurant|cafe)$'];way[amenity~'^(restaurant|cafe)$'];relation[amenity~'^(restaurant|cafe)$'];);",
+    "minZoom": 16,
+    "markerSign": "{% if tags.amenity=='restaurant' %}&#127860;{% else %}&#9749;{% endif %}",
+    "featureBody": "{{ tags.amenity }}<br/>Cuisine: {{ tags.cuisine|default('unknown') }}"
+}
diff --git a/parks.json b/parks.json
new file mode 100644
index 0000000..9c5dcd4
--- /dev/null
+++ b/parks.json
@@ -0,0 +1,10 @@
+{
+    "query": "(way[leisure=park];relation[leisure=park];)",
+    "style": {
+        "color": "green",
+        "fillColor": "green",
+        "fillOpacity": 0.2,
+        "weight": 2
+    },
+    "minZoom": 14
+}
diff --git a/trees.json b/trees.json
new file mode 100644
index 0000000..a824345
--- /dev/null
+++ b/trees.json
@@ -0,0 +1,18 @@
+{
+    "query": "node[natural=tree];",
+    "style": {
+          "nodeFeature": "CircleMarker",
+          "color": "red",
+          "fillColor": "red",
+          "fillOpacity": 0.1,
+          "weight": 1,
+          "radius": 6
+    },
+    "marker": {
+        "iconUrl": "img/map_pointer.png",
+        "iconSize": [ 25, 42 ],
+        "iconAnchor": [ 13, 42 ]
+    },
+    "minZoom": 17,
+    "featureTitle": "{{ tags.species|default('Tree') }}"
+}