From 0269cf089630c908e59a3398aa984b02733cd019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 26 Nov 2017 10:22:48 +0100 Subject: [PATCH] New category water --- places_geo.json | 3 +++ water.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 water.json diff --git a/places_geo.json b/places_geo.json index 469ccac21..a9e6432e6 100644 --- a/places_geo.json +++ b/places_geo.json @@ -24,6 +24,9 @@ { "id": "natural" }, + { + "id": "water" + }, { "id": "administrative" }, diff --git a/water.json b/water.json new file mode 100644 index 000000000..e48041481 --- /dev/null +++ b/water.json @@ -0,0 +1,43 @@ +{ + "type": "overpass", + "name": { + "en": "Waterbodies", + "de": "Gewässer" + }, + "query": { + "12": [ + "(", + "node[natural~\"^(water|divide)$\"];", + "way[natural~\"^(water|divide)$\"];", + "relation[type=multipolygon][natural=water];", + "way[waterway];", + ")" + ] + }, + "feature": { + "markerSign": null, + "style": { + "weight": [ + "{% if tags.waterway == 'stream' %}", + "1.5", + "{% else %}", + "3", + "{% endif %}" + ], + "color": [ + "{% if tags.natural == 'divide' %}", + "#ff0000", + "{% elseif tags.waterway in [ 'dam', 'weir' ] %}", + "#000000", + "{% else %}", + "#3388ff", + "{% endif %}" + ], + "text": [ + "{% if type=='way' and tags.waterway in [ 'river', 'stream', 'canal', 'wadi', 'drystream' ] %}", + "{{ tags.name }} ➔ ", + "{% endif %}" + ] + } + } +}