Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

73 lines
2.1 KiB

type: overpass
query:
'12': |-
(
nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"];
)
feature:
pre: |-
{% if tags.waterway %}
{% set key = 'waterway' %}
{% set value = tags.waterway %}
{% endif %}
{% set constIndex = (key ~ "=" ~ value) %}
{% set item = const[constIndex] %}
title: |
{{ item['sign'] | raw }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
description: |
{{ tagTrans(key, value) }}
body: |-
<dl>
<dt>{{ keyTrans('Description') }}</dt>
<dd>{{ localizedTag(tags, 'description') }}</dd>
{% if attribute(tags, 'operator') %}
<dt>{{ keyTrans('Operator') }}</dt>
<dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
{% endif %}
<dt>{{ trans('Photos') }}</dt>
<dd>
<ul>
{% if attribute(tags, 'mapillary') %}
<li><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a></li>
{% endif %}
</ul>
</dd>
</dl>
markerSign: <i class="fas fa-exclamation-triangle"></i>
markerSymbol: |
{{ markerPointer({ fillColor: '#ff6700' }) }}
listMarkerSymbol: |
{{ markerCircle({ fillColor: '#ff6700' }) }}
priority: |-
{% if const[constIndex] is defined %}
{{ const[constIndex]['priority'] }}
{% else %}
10
{% endif %}
const:
waterway=dam:
sign: <i class="fas fa-sort-amount-down-alt"></i>
priority: 0
waterway=weir:
sign: <i class="fas fa-sort-amount-up-alt"></i>
priority: 0
waterway=waterfall:
sign: <i class="far fa-chart-bar"></i>
priority: 0
waterway=rapids:
sign: <i class="fas fa-water"></i>
priority: 0
waterway=lock:
sign: <i class="fas fa-lock"></i>
priority: 1
waterway=lock_gate:
sign: <i class="fas fa-torii-gate"></i>
priority: 1
waterway=sluice_gate:
sign: <i class="fas fa-grip-lines"></i>
priority: 0