Browse Source

Merge pull request #85 from scarapella/refine-paddling-amenities

Refine paddling amenities
master
Stephan Bösch-Plepelits 3 months ago
committed by GitHub
parent
commit
3490ed94ac
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 283
      paddling_amenities.yaml

283
paddling_amenities.yaml

@ -8,7 +8,7 @@ name:
tr: Kürek Tesisleri tr: Kürek Tesisleri
type: overpass type: overpass
query: query:
'14': |-
'12': |-
( (
node["canoe"~"^(put_in|egress|put_in;egress)$"]; node["canoe"~"^(put_in|egress|put_in;egress)$"];
node["waterway"="access_point"]; node["waterway"="access_point"];
@ -25,15 +25,12 @@ query:
) )
feature: feature:
pre: |- pre: |-
{% if tags.canoe == 'portage' or attribute(tags, 'portage') %}
{% if type == 'way' and (tags.canoe == 'portage' or attribute(tags, 'portage')) %}
{% set key = 'portage' %} {% set key = 'portage' %}
{% set value = 'portage' %} {% set value = 'portage' %}
{% elseif tags.waterway and tags.waterway== 'access_point' %}
{% elseif type == 'node' and tags.waterway and tags.waterway == 'access_point' %}
{% set key = 'waterway' %} {% set key = 'waterway' %}
{% set value = tags.waterway %} {% set value = tags.waterway %}
{% elseif tags.canoe and tags.canoe not in ['yes','designated','permissive','permit','discouraged','private','no']%}
{% set key = 'canoe' %}
{% set value = tags.canoe %}
{% elseif tags.leisure %} {% elseif tags.leisure %}
{% set key = 'leisure' %} {% set key = 'leisure' %}
{% set value = tags.leisure %} {% set value = tags.leisure %}
@ -43,87 +40,211 @@ feature:
{% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %} {% 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 key = 'shop' %}
{% set value = 'rental' %} {% set value = 'rental' %}
{% elseif type == 'node' and tags.canoe and tags.canoe in ['put_in','egress','put_in;egress'] %}
{% set key = 'canoe' %}
{% set value = tags.canoe %}
{% endif %} {% endif %}
{% set constIndex = (key ~ "=" ~ value) %} {% set constIndex = (key ~ "=" ~ value) %}
{% set item = const[constIndex] %} {% set item = const[constIndex] %}
title: |
{% if tags.informal and tags.informal in ['yes','unknown'] %}
{% set informal_value = tags.informal %}
{% endif %}
{% if tags.canoe and tags.canoe in ['no','private','discouraged','unknown'] %}
{% set restricted_access_value = tags.canoe %}
{% set restricted_canoe_value = tags.canoe %}
{% elseif tags.portage and tags.portage in ['no','private','discouraged','unknown'] %}
{% set restricted_access_value = tags.portage %}
{% set restricted_portage_value = tags.canoe %}
{% elseif tags.access and tags.access in ['no','private','discouraged','unknown'] %}
{% set restricted_access_value = tags.access %}
{% endif %}
title: |-
{{ localizedTag(tags, 'name') }} {{ localizedTag(tags, 'name') }}
{% if attribute(tags, 'ref') %} {% if attribute(tags, 'ref') %}
( {{ localizedTag(tags, 'ref') }} ) ( {{ localizedTag(tags, 'ref') }} )
{% endif %} {% endif %}
description: |
listDetails: |-
{%if attribute(tags, 'waterbody:name')%}
{{ localizedTag(tags, 'waterbody:name') }}
{% endif %}
description: |-
{% if item.detailSign %}
{{ item.detailSign | raw }}
{% endif %}
{{ tagTrans(key, value) }} {{ tagTrans(key, value) }}
body: |- body: |-
{% if key not in ['shop'] %}
<ul>
{% if attribute(tags, 'surface') %}
<li class='hasSymbol'>
<i class='fa fa-window-minimize'></i>
{{ keyTrans('Surface') }}:
<span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
</li>
{% endif %}
<ul>
{% if attribute(tags, 'waterbody:name') %}
<li class='hasSymbol'>
<i class="fas fa-water"></i>
<span class='key'>{{ tagTrans('natural', 'water') }}:</span>
<span class='value'>{{ localizedTag(tags, 'waterbody:name') }}</span>
</li>
{% endif %}
{% if attribute(tags, 'surface') %}
<li class='hasSymbol'>
<i class='fa fa-window-minimize'></i>
<span class='key'>{{ keyTrans('surface') }}:</span>
<span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
</li>
{% endif %}
{% if attribute(tags, 'operator') %}
<li class='hasSymbol'>
<i class='fa fa-drivers-license-o'></i>
{{ keyTrans('Operator') }}:
<span class='value'>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</span>
</li>
{% endif %}
{% if attribute(tags, 'operator') %}
<li class='hasSymbol'>
<i class='fa fa-drivers-license-o'></i>
<span class='key'>{{ keyTrans('operator') }}:</span>
<span class='value'>{{ tagTrans('operator', attribute(tags, 'operator')) }}</span>
</li>
{% endif %}
{% if attribute(tags, 'access') %}
<li class='hasSymbol'>
<i class='fa fa-unlock'></i>
{{ keyTrans('Access') }}:
<span class='value'>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</span>
</li>
{% endif %}
{% if attribute(tags, 'informal') %}
<li class='hasSymbol'>
<i class='fa fa-unlock'></i>
<span class='key'>{{ keyTrans('informal') }}:</span>
<span class='value'>{{ tagTrans('informal', attribute(tags, 'informal'))}}</span>
</li>
{% endif %}
{% if attribute(tags, 'canoe') and tags.canoe in ['yes','designated','permissive','permit','discouraged','private','no'] %}
{% if attribute(tags, 'canoe') %}
{% if tags.canoe != 'portage' %}
<li class='hasSymbol'> <li class='hasSymbol'>
<i class='fa fa-unlock'></i> <i class='fa fa-unlock'></i>
{{ keyTrans('Canoe Access') }}:
<span class='value'>{{ attribute(tags, 'canoe') ? tagTrans('access', attribute(tags, 'canoe')) : '' }}</span>
<span class='key'>{{ keyTrans('canoe') }}:</span>
<span class='value'>{{ tagTrans('access', attribute(tags, 'canoe')) }}</span>
</li> </li>
{% endif %}
{% if attribute(tags, 'portage') and tags.portage in ['yes','designated','permissive','permit','discouraged','private','no'] %}
{% elseif type == 'way' and attribute(tags, 'highway') and tags.canoe == 'portage' %}
<li class='hasSymbol'> <li class='hasSymbol'>
<i class='fa fa-unlock'></i> <i class='fa fa-unlock'></i>
{{ keyTrans('Portage Access') }}:
<span class='value'>{{ attribute(tags, 'portage') ? tagTrans('access', attribute(tags, 'portage')) : '' }}</span>
<span class='key'>{{ keyTrans('portage') }}:</span>
<span class='value'>{{ tagTrans('access', 'yes') }}</span>
</li> </li>
{% endif %}
{% endif %}
{% endif %}
{% if attribute(tags, 'fee') %}
<li class='hasSymbol'>
<i class='fa fa-money'></i>
{{ keyTrans('Fee') }}:
<span class='value'>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</span>
</li>
{% endif %}
{% if attribute(tags, 'portage') %}
<li class='hasSymbol'>
<i class='fa fa-unlock'></i>
<span class='key'>{{ keyTrans('portage') }}:</span>
<span class='value'>{{ tagTrans('access', attribute(tags, 'portage')) }}</span>
</li>
{% endif %}
{% if attribute(tags, 'mapillary') %}
<li class='hasSymbol'>
<i class='fa fa-camera'></i>
{{ trans('Photos') }}:
<span class='value'>
<a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
</span>
</li>
{% endif %}
{% if attribute(tags, 'access') %}
<li class='hasSymbol'>
<i class='fa fa-unlock'></i>
<span class='key'>{{ keyTrans('access') }}:</span>
<span class='value'>{{ tagTrans('access', attribute(tags, 'access'))}}</span>
</li>
{% endif %}
{% if attribute(tags, 'fee') %}
<li class='hasSymbol'>
<i class='fa fa-money'></i>
<span class='key'>{{ keyTrans('fee') }}:</span>
<span class='value'>{{ tagTrans('fee', attribute(tags, 'fee')) }}</span>
</li>
{% endif %}
{% if attribute(tags, 'tidal') %}
<li class='hasSymbol'>
<i class="fa fa-arrow-up-from-water-pump"></i>
<span class='key'>{{ keyTrans('tidal') }}:</span>
<span class='value'>{{ tagTrans('tidal', attribute(tags, 'tidal')) }}</span>
</li>
{% endif %}
{% if attribute(tags, 'intermittent') %}
<li class='hasSymbol'>
<i class='fa fa-percentage'></i>
<span class='key'>{{ keyTrans('intermittent') }}:</span>
<span class='value'>{{ tagTrans('intermittent', attribute(tags, 'intermittent')) }}</span>
</li>
{% endif %}
{% if attribute(tags, 'seasonal') %}
<li class='hasSymbol'>
<i class='fa fa-leaf'></i>
<span class='key'>{{ keyTrans('seasonal') }}:</span>
<span class='seasonal'>{{ tagTrans('seasonal', attribute(tags, 'seasonal')) }}</span>
</li>
{% endif %}
{% if attribute(tags, 'mapillary') %}
<li class='hasSymbol'>
<i class='fa fa-camera'></i>
<span class='key'>{{ trans('Photos') }}:</span>
<span class='value'>
<a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
</span>
</li>
{% endif %}
</ul>
{% if attribute(tags,'canoe:description') %}
<li class='hasSymbol'>
<img data-src="temaki:canoe">
<span class='value'>{{ localizedTag(tags, 'canoe:description') }}</span>
</li>
{% endif %} {% endif %}
<!-- Description and Wheelchair rendered from detailsBody.html. -->
{% if attribute(tags,'wheelchair:description') %}
<li class='hasSymbol'>
<i class='fa fa-wheelchair'></i>
<span class='value'>{{ localizedTag(tags, 'wheelchair:description') }}</span>
</li>
{% endif %}
</ul>
markerSign: '{{ item[''sign''] | raw }}' markerSign: '{{ item[''sign''] | raw }}'
markerSymbol: |
{% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
listMarkerSymbol: |
{% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
markerSymbol: |-
{% if item.symbol=='pointer' %}
{% if restricted_access_value %}
{{ markerPointer({ fillColor: const.marker.style.color_restricted }) }}
{% else %}
{{ markerPointer({ fillColor: const.marker.style.color }) }}
{% endif %}
{% endif %}
listMarkerSymbol: |-
{% if item.symbol=='pointer' %}
{% if restricted_access_value %}
{{ markerCircle({ fillColor: const.marker.style.color_restricted }) }}
{% else %}
{{ markerCircle({ fillColor: const.marker.style.color }) }}
{% endif %}
{% elseif item.symbol == 'polygon' %}
polygon
{% elseif item.symbol == 'line' %}
line
{% endif %}
styles : |
default{% if item.symbol == 'line' %},casing{% endif %}
style:
width: '{{ item.style.width }}'
color: |-
{% if restricted_access_value %}
{{ item.style.color_restricted }}
{% elseif informal_value %}
{{ item.style.color_informal }}
{% else %}
{{ item.style.color }}
{% endif %}
text: |-
{% if item.text %}
{% if attribute(tags, "piste:name") %}
{{ localizedTag(tags, 'piste:name') }}
{% elseif attribute(tags, "name") %}
{{ localizedTag(tags, 'name') }}
{% endif %}
{% endif %}
textRepeat: '1'
textOffset: -8
lineCap: round
dashArray: |-
{% if restricted_access_value %}5,5{% endif %}
style:casing:
width: '{{item.style.casing.width}}'
pane: casing
priority: |- priority: |-
{% if item is defined %} {% if item is defined %}
{{ item['priority'] }} {{ item['priority'] }}
@ -131,28 +252,52 @@ feature:
10 10
{% endif %} {% endif %}
const: const:
marker:
style:
color: '#B3D2FF'
color_restricted: '#7F7F7F'
portage=portage: portage=portage:
sign:
priority: 2
symbol: line
priority: 4
text: true
style:
width: 4
color: '#B3D2FF'
color_informal: '#99A9BF'
color_restricted: '#7F7F7F'
casing:
width: 10
waterway=access_point: waterway=access_point:
sign: <i class="fas fa-arrows-alt-v"></i>
symbol: pointer
sign: <img data-src="temaki:canoe">
detailSign: <i class="fas fa-arrows-alt-v"></i>
priority: 0 priority: 0
canoe=put_in: canoe=put_in:
sign: <i class="fas fa-long-arrow-alt-down"></i>
symbol: pointer
sign: <img data-src="temaki:canoe">
detailSign: <i class="fas fa-long-arrow-alt-down"></i>
priority: 0 priority: 0
canoe=egress: canoe=egress:
sign: <i class="fas fa-long-arrow-alt-up"></i>
symbol: pointer
sign: <img data-src="temaki:canoe">
detailSign: <i class="fas fa-long-arrow-alt-up"></i>
priority: 0 priority: 0
canoe=put_in;egress: canoe=put_in;egress:
sign: <i class="fas fa-arrows-alt-v"></i>
symbol: pointer
sign: <img data-src="temaki:canoe">
detailSign: <i class="fas fa-arrows-alt-v"></i>
priority: 0 priority: 0
leisure=slipway: leisure=slipway:
sign: <i class="fas fa-ship"></i>
symbol: pointer
sign: <img data-src="temaki:canoe">
detailSign: <img src='maki:slipway'>
priority: 1 priority: 1
shop=shop: shop=shop:
symbol: pointer
sign: <i class="fas fa-store-alt"></i> sign: <i class="fas fa-store-alt"></i>
priority: 3 priority: 3
shop=rental: shop=rental:
symbol: pointer
sign: <i class="fas fa-store"></i> sign: <i class="fas fa-store"></i>
priority: 3 priority: 3
Loading…
Cancel
Save