|
|
@ -0,0 +1,46 @@ |
|
|
|
type: overpass |
|
|
|
name: |
|
|
|
en: Paddling Hazards |
|
|
|
query: |
|
|
|
'12': |- |
|
|
|
( |
|
|
|
nwr[waterway~"^(dam|weir)$"]; |
|
|
|
) |
|
|
|
feature: |
|
|
|
pre: |- |
|
|
|
{% if tags.waterway %} |
|
|
|
{% set key = 'waterway' %} |
|
|
|
{% set value = tags.waterway %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% set constIndex = (key ~ "=" ~ value) %} |
|
|
|
{% set item = const[constIndex] %} |
|
|
|
|
|
|
|
title: | |
|
|
|
{{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }} {{ const[constIndex][''sign''] }} |
|
|
|
description: | |
|
|
|
{{ tagTrans(key, value) }} |
|
|
|
body: |- |
|
|
|
<dl> |
|
|
|
<dt>{{ localizedTag(tags, 'description') }}</dt> |
|
|
|
<dd>{{ tags.description }}</dd> |
|
|
|
</dl> |
|
|
|
{% if attribute(tags, 'mapillary') %} |
|
|
|
<div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div> |
|
|
|
{% endif %} |
|
|
|
markerSign: '⚠️' |
|
|
|
|
|
|
|
priority: |- |
|
|
|
{% if const[constIndex] is defined %} |
|
|
|
{{ const[constIndex]['priority'] }} |
|
|
|
{% else %} |
|
|
|
10 |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
const: |
|
|
|
waterway=dam: |
|
|
|
sign: '🦫' |
|
|
|
priority: 0 |
|
|
|
waterway=weir: |
|
|
|
sign: '🦫' |
|
|
|
priority: 0 |