forked from MapComplete/MapComplete
Themes(climbing): styling tweaks
This commit is contained in:
parent
6ae258c48d
commit
cb2e912efb
1 changed files with 3 additions and 5 deletions
|
@ -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 => `<li><a href='#${p.id}'>${p.name ?? 'climbing route'}</a> (<b class='climbing-${p['__difficulty:char']} rounded-full p-l-1 p-r-1'>${p['climbing:grade:french'] ?? 'unknown difficulty'}</b>, ${p['climbing:length'] ?? 'unkown length'} meter)</li>`).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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue