|
|
{ "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, "listMarkerSymbol": [ "{% if tags.natural == 'water' %}", "polygon", "{% else %}", "line", "{% endif %}" ], "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 %}" ] } }, "info": [ "<table>", " <tr>", " <td>{{ markerPolygon(evaluate({ \"natural\": \"water\" }))|raw }}</td>", " <td>{{ tagTrans('natural', 'water') }}</td>", " </tr>", " <tr>", " <td>{{ markerLine(evaluate({ \"waterway\": \"river\" }))|raw }}</td>", " <td>{{ tagTrans('waterway', 'river') }}</td>", " </tr>", " <tr>", " <td>{{ markerLine(evaluate({ \"waterway\": \"stream\" }))|raw }}</td>", " <td>{{ tagTrans('waterway', 'stream') }}</td>", " </tr>", " <tr>", " <td>{{ markerLine(evaluate({ \"waterway\": \"dam\" }))|raw }}</td>", " <td>{{ tagTrans('waterway', 'dam') }}, {{ tagTrans('waterway', 'weir') }}</td>", " </tr>", " <tr>", " <td>{{ markerLine(evaluate({ \"natural\": \"divide\" }))|raw }}</td>", " <td>{{ tagTrans('natural', 'divide') }}</td>", " </tr>", "</table>" ] }
|