Formatting

This commit is contained in:
pietervdvn 2021-06-24 12:23:17 +02:00
parent 7ca9ff4728
commit 700f1be11d

View file

@ -329,7 +329,6 @@
} }
] ]
}, },
"tagRenderings": [ "tagRenderings": [
"images", "images",
"questions", "questions",
@ -842,23 +841,34 @@
], ],
"units": [ "units": [
{ {
"appliesToKey": ["climbing:length"], "appliesToKey": [
"applicableUnits": [{ "climbing:length"
"canonicalDenomination": "m", ],
"alternativeDenomination": ["meter","meters"], "applicableUnits": [
"human": { {
"en": " meter", "canonicalDenomination": "m",
"nl": " meter" "alternativeDenomination": [
"meter",
"meters"
],
"human": {
"en": " meter",
"nl": " meter"
},
"default": true
}, },
"default": true {
},{ "canonicalDenomination": "ft",
"canonicalDenomination": "ft", "alternativeDenomination": [
"alternativeDenomination": ["feet","voet"], "feet",
"human": { "voet"
"en": " feet", ],
"nl": " voet" "human": {
"en": " feet",
"nl": " voet"
}
} }
}] ]
} }
], ],
"roamingRenderings": [ "roamingRenderings": [
@ -1358,15 +1368,14 @@
"key": "climbing:length" "key": "climbing:length"
} }
}, },
{ {
"render": "<div style='display:block ruby;' class='m-1 '><img src='./assets/themes/climbing/carabiner.svg' style='width:2rem; height:2rem'/>{climbing:bolted}</div>", "render": "<div style='display:block ruby;' class='m-1 '><img src='./assets/themes/climbing/carabiner.svg' style='width:2rem; height:2rem'/>{climbing:bolted}</div>",
"freeform": { "freeform": {
"key": "climbing:bolted" "key": "climbing:bolted"
} }
}, },
"defaults"
"defaults"], ],
"+calculatedTags": [ "+calculatedTags": [
"_embedding_feature_properties=feat.overlapWith('climbing').map(f => f.feat.properties).filter(p => p !== undefined).map(p => {return{access: p.access, id: p.id, name: p.name, climbing: p.climbing, 'access:description': p['access:description']}})", "_embedding_feature_properties=feat.overlapWith('climbing').map(f => f.feat.properties).filter(p => p !== undefined).map(p => {return{access: p.access, id: p.id, name: p.name, climbing: p.climbing, 'access:description': p['access:description']}})",
"_embedding_features_with_access=JSON.parse(feat.properties._embedding_feature_properties ?? '[]').filter(p => p.access !== undefined)[0]", "_embedding_features_with_access=JSON.parse(feat.properties._embedding_feature_properties ?? '[]').filter(p => p.access !== undefined)[0]",