Merge pull request #965 from pietervdvn/feature/entrance-kerb-info

Feature/entrance kerb info
This commit is contained in:
Pieter Vander Vennet 2022-07-19 12:02:37 +02:00 committed by GitHub
commit 9319f93bf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 6 deletions

View file

@ -340,6 +340,34 @@
"key": "width",
"type": "distance"
}
},
{
"id": "kerb-height",
"question": {
"en": "What is the height of this kerb?",
"nl": "Hoe hoog is deze stoeprand?",
"de": "Wie hoch ist der Bordstein?"
},
"render": {
"en": "Kerb height: {kerb:height}",
"nl": "Stoeprandhoogte: {kerb:height}",
"de": "Bordsteinhöhe: {kerb:height}"
},
"freeform": {
"key": "kerb:height",
"placeholder": {
"en": "Height of the kerb",
"nl": "Hoogte van de stoeprand",
"de": "Höhe des Bordsteins"
},
"type": "pnat"
},
"mappings": [
{
"if": "kerb-height=",
"then": "kerb-height=0"
}
]
}
],
"mapRendering": [

View file

@ -47,7 +47,7 @@
"calculatedTags": [
"_entrance_properties=feat.overlapWith('entrance')?.map(e => e.feat.properties).filter(p => p !== undefined).filter(p => p.width !== undefined)",
"_entrance:id=feat.get('_entrance_properties')?.map(e => e.id)?.at(0)",
"_entrance:width=feat.get('_entrance_properties')?.map(e => e.width)"
"_entrance:width=feat.get('_entrance_properties')?.map(e => e.width)?.at(0)"
],
"tagRenderings": [
{