commit f77e06e47979dc441a1f7dd74ee00f5bcebe9c91 Author: Stephan Bösch-Plepelits Date: Fri Jun 9 20:28:50 2017 +0200 Categories as JSON files diff --git a/gastro.json b/gastro.json new file mode 100644 index 00000000..033fa315 --- /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' %}🍴{% else %}☕{% endif %}", + "featureBody": "{{ tags.amenity }}
Cuisine: {{ tags.cuisine|default('unknown') }}" +} diff --git a/parks.json b/parks.json new file mode 100644 index 00000000..9c5dcd41 --- /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 00000000..a8243456 --- /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') }}" +}