Browse Source

Improved marker contrast and removed markers for portage way segments in the water..

sidewalks-category
Nathan Hartley 2 years ago
parent
commit
79695347df
  1. 122
      paddling_amenities.yaml
  2. 8
      paddling_hazards.yaml

122
paddling_amenities.yaml

@ -1,99 +1,75 @@
type: overpass type: overpass
name: name:
en: Paddling Amenities en: Paddling Hazards
query: query:
'14': |- '13': |-
( (
node["canoe"="put_in"]; nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"];
node["leisure"="slipway"];
way["canoe"="portage"];
nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
nwr["canoe_rental"="yes"];
nwr["kayak_rental"="yes"];
nwr["standup_paddleboard_rental"="yes"];
nwr["dinghy_rental"="yes"];
nwr["pedalboat_rental"="yes"];
) )
feature: feature:
pre: |- pre: |-
{% if tags.canoe %} {% if tags.waterway %}
{% set key = 'canoe' %} {% set key = 'waterway' %}
{% set value = tags.canoe %} {% set value = tags.waterway %}
{% elseif tags.leisure %}
{% set key = 'leisure' %}
{% set value = tags.leisure %}
{% elseif tags.shop %}
{% set key = 'shop' %}
{% set value = tags.shop %}
{% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
{% set key = 'shop' %}
{% set value = 'rental' %}
{% endif %} {% endif %}
{% set constIndex = (key ~ "=" ~ value) %} {% set constIndex = (key ~ "=" ~ value) %}
{% set item = const[constIndex] %} {% set item = const[constIndex] %}
title: | title: |
{{ localizedTag(tags, 'name') }} {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
{% if attribute(tags, 'ref') %}
( {{ localizedTag(tags, 'ref') }} )
{% endif %}
description: | description: |
{{ tagTrans(key, value) }} {{ tagTrans(key, value) }}
body: |- body: |-
{% if constIndex in ['canoe=put_in', 'leisure=slipway','canoe=portage'] %} <dl>
<dl> <dt>{{ keyTrans('Description') }}</dt>
<dt>{{ keyTrans('Description') }}</dt> <dd>{{ localizedTag(tags, 'description') }}</dd>
<dd>{{ localizedTag(tags, 'description') }}</dd> {% if attribute(tags, 'operator') %}
<dt>{{ keyTrans('Surface') }}</dt>
<dd>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</dd>
<dt>{{ keyTrans('Operator') }}</dt> <dt>{{ keyTrans('Operator') }}</dt>
<dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd> <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
{% endif %}
<dt>{{ keyTrans('Access') }}</dt> <dt>{{ trans('Photos') }}</dt>
<dd>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</dd> <dd>
<ul>
<dt>{{ keyTrans('Fee') }}</dt> {% if attribute(tags, 'mapillary') %}
<dd>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</dd> <li><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a></li>
{% endif %}
<dt>{{ keyTrans('Wheelchair') }}</dt> </ul>
<dd>{{ attribute(tags, 'wheelchair') ? tagTrans('wheelchair', attribute(tags, 'wheelchair')) : '' }}</dd> </dd>
<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>
{% endif %}
markerSign: '{{ item[''sign''] }}'
</dl>
markerSign: '⚠️'
markerSymbol: |
{{ markerPointer({ fillColor: '#FFFFFF' }) }}
listMarkerSymbol: |
{{ markerCircle({ fillColor: '#FFFFFF' }) }}
priority: |- priority: |-
{% if item is defined %} {% if const[constIndex] is defined %}
{{ item['priority'] }} {{ const[constIndex]['priority'] }}
{% else %} {% else %}
10 10
{% endif %} {% endif %}
const: const:
canoe=put_in: waterway=dam:
sign: 🛶 sign: '🦫'
priority: 0
waterway=weir:
sign: '🦫'
priority: 0
waterway=waterfall:
sign: '🌊'
priority: 0
waterway=rapids:
sign: '🌊'
priority: 0 priority: 0
leisure=slipway: waterway=lock:
sign: 🚣🏻 sign: '🚪'
priority: 1 priority: 1
canoe=portage: waterway=lock_gate:
sign: 🚶🏻 sign: '🚪'
priority: 2 priority: 1
shop=boat: waterway=sluice_gate:
sign: 🛒 sign: '🦫'
priority: 3 priority: 0
shop=rental:
sign: 🛒
priority: 3

8
paddling_hazards.yaml

@ -15,7 +15,6 @@ feature:
{% set constIndex = (key ~ "=" ~ value) %} {% set constIndex = (key ~ "=" ~ value) %}
{% set item = const[constIndex] %} {% set item = const[constIndex] %}
title: | title: |
{{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }} {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
description: | description: |
@ -40,16 +39,17 @@ feature:
</dd> </dd>
</dl> </dl>
markerSign: '⚠️' markerSign: '⚠️'
markerSymbol: |
{{ markerPointer({ fillColor: '#FFFFFF' }) }}
listMarkerSymbol: |
{{ markerCircle({ fillColor: '#FFFFFF' }) }}
priority: |- priority: |-
{% if const[constIndex] is defined %} {% if const[constIndex] is defined %}
{{ const[constIndex]['priority'] }} {{ const[constIndex]['priority'] }}
{% else %} {% else %}
10 10
{% endif %} {% endif %}
const: const:
waterway=dam: waterway=dam:
sign: '🦫' sign: '🦫'

|||||||
100:0
Loading…
Cancel
Save