2 Commits

Author SHA1 Message Date
Nathan Hartley b49806e0cb Improved appearance of marker and description. 2 years ago
Nathan Hartley 33797e2645 BUG FIX: typo 2 years ago
  1. 18
      paddling_amenities.yaml
  2. 2
      paddling_hazards.yaml

18
paddling_amenities.yaml

@ -17,7 +17,7 @@ query:
) )
feature: feature:
pre: |- pre: |-
{% if tags.canoe == 'portage' (and not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water') %}
{% if tags.canoe == 'portage' and ( not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water' ) %}
{% set key = 'waterway' %} {% set key = 'waterway' %}
{% set value = 'portage' %} {% set value = 'portage' %}
{% elseif tags.canoe %} {% elseif tags.canoe %}
@ -28,7 +28,7 @@ feature:
{% set value = tags.leisure %} {% set value = tags.leisure %}
{% elseif tags.shop %} {% elseif tags.shop %}
{% set key = 'shop' %} {% set key = 'shop' %}
{% set value = tags.shop %}
{% set value = '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 %} {% 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' %}
@ -76,7 +76,7 @@ feature:
{% endif %} {% endif %}
markerSign: '{{ item[''sign''] }}' markerSign: '{{ item[''sign''] }}'
markerSymbol: | markerSymbol: |
{% if item['sign'] %}{{ markerPointer({ fillColor: '#DDDDDD' }) }}{% endif %}
{% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
listMarkerSymbol: | listMarkerSymbol: |
{% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %} {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
priority: |- priority: |-
@ -86,8 +86,8 @@ feature:
10 10
{% endif %} {% endif %}
const: const:
waterway=portage:
sign:
canoe=portage:
sign: 🚶🏻
priority: 2 priority: 2
canoe=put_in: canoe=put_in:
sign: 🛶 sign: 🛶
@ -95,12 +95,12 @@ const:
leisure=slipway: leisure=slipway:
sign: 🚣🏻 sign: 🚣🏻
priority: 1 priority: 1
canoe=portage:
sign: 🚶🏻
priority: 2
shop=boat:
shop=shop:
sign: 🛒 sign: 🛒
priority: 3 priority: 3
shop=rental: shop=rental:
sign: 🛒 sign: 🛒
priority: 3 priority: 3
waterway=portage:
sign:
priority: 2

2
paddling_hazards.yaml

@ -41,7 +41,7 @@ feature:
</dl> </dl>
markerSign: '⚠️' markerSign: '⚠️'
markerSymbol: | markerSymbol: |
{{ markerPointer({ fillColor: '#DDDDDD' }) }}
{{ markerPointer({ fillColor: '#FFFFFF' }) }}
listMarkerSymbol: | listMarkerSymbol: |
{{ markerCircle({ fillColor: '#FFFFFF' }) }} {{ markerCircle({ fillColor: '#FFFFFF' }) }}
priority: |- priority: |-

Loading…
Cancel
Save