can display calculated tags with tag renderings
This commit is contained in:
parent
99fabe6e5c
commit
c2328e784a
2 changed files with 28 additions and 3 deletions
|
@ -45,6 +45,30 @@
|
|||
}
|
||||
],
|
||||
"calculatedTags": [
|
||||
"_entrance=feat.overlapWith('entrance')?.map(e => e.feat.properties.id)"
|
||||
"_entrance_properties=feat.overlapWith('entrance')?.map(e => e.feat.properties).filter(p => p !== undefined)",
|
||||
"_entrance:id=feat.get('_entrance_properties')?.map(e => e.id)",
|
||||
"_entrance:width=feat.get('_entrance_properties')?.map(e => e.width)?.at(0)"
|
||||
],
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "Entrance_width",
|
||||
"render": {
|
||||
"en": "This door has a width of {canonical(_entrance:width)} meter",
|
||||
"nl": "Deze deur heeft een breedte van {canonical(_entrance:width)} meter",
|
||||
"de": "Diese Tür hat eine Durchgangsbreite von {canonical(_entrance:width)} Meter",
|
||||
"es": "Esta puerta tiene una ancho de {canonical(_entrance:width)} metros"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "_entrance:width"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_entrance:width=",
|
||||
"then": {
|
||||
"en": "This entrance has no width information"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue