Browse Source

Imporoved marker contrast and removed markers from portage segments in water.

master
Nathan Hartley 2 years ago
parent
commit
dc8d4bae71
  1. 15
      paddling_amenities.yaml
  2. 8
      paddling_hazards.yaml

15
paddling_amenities.yaml

@ -17,7 +17,10 @@ query:
) )
feature: feature:
pre: |- pre: |-
{% if tags.canoe %}
{% if tags.canoe == 'portage' (and not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water') %}
{% set key = 'waterway' %}
{% set value = 'portage' %}
{% elseif tags.canoe %}
{% set key = 'canoe' %} {% set key = 'canoe' %}
{% set value = tags.canoe %} {% set value = tags.canoe %}
{% elseif tags.leisure %} {% elseif tags.leisure %}
@ -33,7 +36,6 @@ feature:
{% set constIndex = (key ~ "=" ~ value) %} {% set constIndex = (key ~ "=" ~ value) %}
{% set item = const[constIndex] %} {% set item = const[constIndex] %}
title: | title: |
{{ localizedTag(tags, 'name') }} {{ localizedTag(tags, 'name') }}
{% if attribute(tags, 'ref') %} {% if attribute(tags, 'ref') %}
@ -73,15 +75,20 @@ feature:
</dl> </dl>
{% endif %} {% endif %}
markerSign: '{{ item[''sign''] }}' markerSign: '{{ item[''sign''] }}'
markerSymbol: |
{% if item['sign'] %}{{ markerPointer({ fillColor: '#DDDDDD' }) }}{% endif %}
listMarkerSymbol: |
{% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
priority: |- priority: |-
{% if item is defined %} {% if item is defined %}
{{ item['priority'] }} {{ item['priority'] }}
{% else %} {% else %}
10 10
{% endif %} {% endif %}
const: const:
waterway=portage:
sign:
priority: 2
canoe=put_in: canoe=put_in:
sign: 🛶 sign: 🛶
priority: 0 priority: 0

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: '#DDDDDD' }) }}
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: '🦫'

Loading…
Cancel
Save