From 0787aeeb99e81b469bc2fdfd777c754603f13aa9 Mon Sep 17 00:00:00 2001 From: scarapella Date: Tue, 23 Dec 2025 12:57:18 -0500 Subject: [PATCH] Adding a few tweaks to ice_skating * indicate informal access * add detailed sub-icons to lables * consider 'unknown' as a form of restricted access --- ice_skating.yaml | 55 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/ice_skating.yaml b/ice_skating.yaml index 3556599..bda5848 100644 --- a/ice_skating.yaml +++ b/ice_skating.yaml @@ -23,7 +23,7 @@ type: overpass query: # Ice rinks are intentionally excluded here as they are covered already by leisure.json and/or sport.json # TODO: add ice skating relations when there is more than one in the world - '10': |- + '9': |- ( way["piste:type"="ice_skate"]; way[waterway][ice_skates]; @@ -59,9 +59,13 @@ feature: {% set constIndex = (key ~ "=" ~ value) %} {% set item = const[constIndex] %} - {% if tags.ice_skates and tags.ice_skates in ['no','private','discouraged'] %} + {% if tags.informal and tags.informal in ['yes','unknown'] %} + {% set informal_value = tags.informal %} + {% endif %} + + {% if tags.ice_skates and tags.ice_skates in ['no','private','discouraged','unknown'] %} {% set restricted_access_value = tags.ice_skates %} - {% elseif tags.access and tags.access in ['no','private','discouraged'] %} + {% elseif tags.access and tags.access in ['no','private','discouraged','unknown'] %} {% set restricted_access_value = tags.access %} {% elseif type == 'way' and tags.waterway and tags.waterway != 'access_point' and tags.ice_skates and tags.ice_skates == 'kluning' %} {% set restricted_access_value = tags.ice_skates %} @@ -79,7 +83,10 @@ feature: {%if attribute(tags, 'waterbody:name')%} {{ localizedTag(tags, 'waterbody:name') }} {% endif %} - description: | + description: |- + {% if item.detailSign %} + {{ item.detailSign | raw }} + {% endif %} {{ tagTrans(key, value) }} body: |-