diff --git a/paddling_amenities.yaml b/paddling_amenities.yaml index 2c3ef2a..b3f1587 100644 --- a/paddling_amenities.yaml +++ b/paddling_amenities.yaml @@ -17,7 +17,10 @@ query: ) feature: 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 value = tags.canoe %} {% elseif tags.leisure %} @@ -33,7 +36,6 @@ feature: {% set constIndex = (key ~ "=" ~ value) %} {% set item = const[constIndex] %} - title: | {{ localizedTag(tags, 'name') }} {% if attribute(tags, 'ref') %} @@ -73,15 +75,20 @@ feature: {% endif %} markerSign: '{{ item[''sign''] }}' - + markerSymbol: | + {% if item['sign'] %}{{ markerPointer({ fillColor: '#DDDDDD' }) }}{% endif %} + listMarkerSymbol: | + {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %} priority: |- {% if item is defined %} {{ item['priority'] }} {% else %} 10 {% endif %} - const: + waterway=portage: + sign: + priority: 2 canoe=put_in: sign: 🛶 priority: 0 diff --git a/paddling_hazards.yaml b/paddling_hazards.yaml index 2b21c73..8669e8f 100644 --- a/paddling_hazards.yaml +++ b/paddling_hazards.yaml @@ -15,7 +15,6 @@ feature: {% set constIndex = (key ~ "=" ~ value) %} {% set item = const[constIndex] %} - title: | {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }} description: | @@ -40,16 +39,17 @@ feature: - markerSign: '⚠️' - + markerSymbol: | + {{ markerPointer({ fillColor: '#DDDDDD' }) }} + listMarkerSymbol: | + {{ markerCircle({ fillColor: '#FFFFFF' }) }} priority: |- {% if const[constIndex] is defined %} {{ const[constIndex]['priority'] }} {% else %} 10 {% endif %} - const: waterway=dam: sign: '🦫'