diff --git a/places_geo.json b/places_geo.json index 469ccac..a9e6432 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 0000000..e480414 --- /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 %}" + ] + } + } +}