added entrance:id to render

This commit is contained in:
Andrews Leruth 2022-07-18 10:15:17 +02:00
parent 7e46aa8656
commit 4af43b4afc

View file

@ -23,7 +23,7 @@
} }
}, },
"passAllFeatures": true, "passAllFeatures": true,
"shownByDefault": true, "shownByDefault": false,
"mapRendering": [ "mapRendering": [
{ {
"color": { "color": {
@ -46,17 +46,17 @@
], ],
"calculatedTags": [ "calculatedTags": [
"_entrance_properties=feat.overlapWith('entrance')?.map(e => e.feat.properties).filter(p => p !== undefined)", "_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:id=feat.get('_entrance_properties')?.map(e => e.id)?.at(0)",
"_entrance:width=feat.get('_entrance_properties')?.map(e => e.width)?.at(0)" "_entrance:width=feat.get('_entrance_properties')?.map(e => e.width)"
], ],
"tagRenderings": [ "tagRenderings": [
{ {
"id": "_entrance:width", "id": "_entrance:width",
"render": { "render": {
"en": "This door has a width of {canonical(_entrance:width)} meter", "en": "<a href ='#{_entrance:id} '>This door has a width of {canonical(_entrance:width)} meters </a>",
"nl": "Deze deur heeft een breedte van {canonical(_entrance:width)} meter", "nl": "<a href ='#{_entrance:id} '>Deze deur heeft een breedte van {canonical(_entrance:width)} meter </a>",
"de": "Diese Tür hat eine Durchgangsbreite von {canonical(_entrance:width)} Meter", "de": "<a href ='#{_entrance:id} '>Diese Tür hat eine Durchgangsbreite von {canonical(_entrance:width)} Meter </a>",
"es": "Esta puerta tiene una ancho de {canonical(_entrance:width)} metros" "es": "<a href ='#{_entrance:id} '>Esta puerta tiene una ancho de {canonical(_entrance:width)} metros </a>"
}, },
"freeform": { "freeform": {
"key": "_entrance:width" "key": "_entrance:width"