Refactoring: fix metatagging
This commit is contained in:
parent
177697fe0a
commit
8fd3fbc0b7
34 changed files with 378 additions and 265 deletions
|
@ -186,9 +186,9 @@
|
|||
}
|
||||
},
|
||||
"calculatedTags": [
|
||||
"_postal_code_properties=(() => { const f = feat.overlapWith('postal_code_boundary'); if(f.length===0){return {};}; const p = f[0]?.feat?.properties; return {id:p.id, postal_code: p.postal_code, _closest_town_hall: p._closest_town_hall}; })()",
|
||||
"_postal_code_properties=(() => { const f = overlapWith(feat)('postal_code_boundary'); if(f.length===0){return {};}; const p = f[0]?.feat?.properties; return {id:p.id, postal_code: p.postal_code, _closest_town_hall: p._closest_town_hall}; })()",
|
||||
"_postal_code=feat.get('_postal_code_properties')?.postal_code",
|
||||
"_postal_code_center_distance=feat.distanceTo(feat.get('_postal_code_properties').id)"
|
||||
"_postal_code_center_distance=distanceTo(feat)(feat.get('_postal_code_properties').id)"
|
||||
],
|
||||
"description": {},
|
||||
"tagRenderings": [],
|
||||
|
@ -216,4 +216,4 @@
|
|||
"isShown": "_country=be"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue