From cb2e912efb6068b53db479ccadc459ebf77763cc Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 12 Jul 2025 16:02:57 +0200 Subject: [PATCH] Themes(climbing): styling tweaks --- assets/layers/climbing_area/climbing_area.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/assets/layers/climbing_area/climbing_area.json b/assets/layers/climbing_area/climbing_area.json index 02a1849772..4f443eb620 100644 --- a/assets/layers/climbing_area/climbing_area.json +++ b/assets/layers/climbing_area/climbing_area.json @@ -35,7 +35,7 @@ "_contained_climbing_routes_properties=overlapWith(feat)('climbing_route').map(f => f.feat.properties).map(p => {return {id: p.id, name: p.name, 'climbing:grade:french': p['climbing:grade:french'], 'climbing:length': p['climbing:length']} })", "_contained_climbing_routes=get(feat)('_contained_climbing_routes_properties')?.map(p => `
  • ${p.name ?? 'climbing route'} (${p['climbing:grade:french'] ?? 'unknown difficulty'}, ${p['climbing:length'] ?? 'unkown length'} meter)
  • `).join('')", "_contained_climbing_route_ids=get(feat)('_contained_climbing_routes_properties')?.map(p => p.id)", - "_difficulty_hist=get(feat)('_contained_climbing_routes_properties')?.map(p => p['climbing:grade:french'])?.filter(p => (p ?? null) !== null)?.sort()", + "_difficulty_hist=get(feat)('_contained_climbing_routes_properties')?.map(p => p['climbing:grade:french'])?.filter(p => (p ?? null) !== null)?.map(diff => ''+parseInt(diff))?.sort()", "_difficulty_max=get(feat)('_difficulty_hist')?.at(-1)", "_difficulty_min=get(feat)('_difficulty_hist')?.at(0)", "_length_hist=get(feat)('_contained_climbing_routes_properties')?.map(p => p['climbing:length'])?.filter(p => (p ?? null) !== null)?.sort()", @@ -221,8 +221,7 @@ "key": "_length_hist" } }, - "condition": "_length_hist!~\\[\\]", - "classes": "w-64 h-96" + "condition": "_length_hist!~\\[\\]" }, { "id": "difficulty_hist_title", @@ -247,8 +246,7 @@ "key": "_difficulty_hist" } }, - "condition": "_difficulty_hist!~\\[\\]", - "classes": "w-64 h-96" + "condition": "_difficulty_hist!~\\[\\]" }, { "id": "Contained_climbing_routes",