Browse Source

Initial hazards category.

master
Nathan Hartley 2 years ago
parent
commit
0f463d2fdc
  1. 2
      paddling_amenities.yaml
  2. 46
      paddling_hazards.yaml

2
paddling_amenities.yaml

@ -34,7 +34,7 @@ feature:
<dl>
<dt>Surface</dt>
<dd>{% if attribute(tags, 'surface') %}{{ tagTrans('surface', tags.surface) }}{% endif %}</dd>
<dt>Description</dt>
<dt>{{ localizedTag(tags, 'description') }}</dt>
<dd>{{ tags.description }}</dd>
</dl>
{% if attribute(tags, 'mapillary') %}

46
paddling_hazards.yaml

@ -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
Loading…
Cancel
Save