forked from MapComplete/MapComplete
Tweaks to the observation_tower theme
This commit is contained in:
parent
1993861bbe
commit
e6cb3bc22a
2 changed files with 76 additions and 34 deletions
|
@ -165,6 +165,7 @@ name | default | description
|
||||||
------ | --------- | -------------
|
------ | --------- | -------------
|
||||||
key | opening_hours | The tagkey from which the table is constructed.
|
key | opening_hours | The tagkey from which the table is constructed.
|
||||||
prefix | _empty string_ | Remove this string from the start of the value before parsing. __Note: use `&LPARENs` to
|
prefix | _empty string_ | Remove this string from the start of the value before parsing. __Note: use `&LPARENs` to
|
||||||
|
|
||||||
indicate `(` if needed__
|
indicate `(` if needed__
|
||||||
postfix | _empty string_ | Remove this string from the end of the value before parsing. __Note: use `&RPARENs` to
|
postfix | _empty string_ | Remove this string from the end of the value before parsing. __Note: use `&RPARENs` to
|
||||||
indicate `)` if needed__
|
indicate `)` if needed__
|
||||||
|
@ -492,7 +493,9 @@ tags_to_apply | _undefined_ | A specification of the tags to apply
|
||||||
message | _undefined_ | The text to show to the contributor
|
message | _undefined_ | The text to show to the contributor
|
||||||
image | _undefined_ | An image to show to the contributor on the button
|
image | _undefined_ | An image to show to the contributor on the button
|
||||||
id_of_object_to_apply_this_one | _undefined_ | If specified, applies the the tags onto _
|
id_of_object_to_apply_this_one | _undefined_ | If specified, applies the the tags onto _
|
||||||
another_ object. The id will be read from properties[id_of_object_to_apply_this_one] of the selected object. The tags are still calculated based on the tags of the _
|
|
||||||
|
another_ object. The id will be read from properties[id_of_object_to_apply_this_one] of the selected object. The tags
|
||||||
|
are still calculated based on the tags of the _
|
||||||
selected_ element
|
selected_ element
|
||||||
|
|
||||||
#### Example usage of tag_apply
|
#### Example usage of tag_apply
|
||||||
|
|
|
@ -77,22 +77,28 @@
|
||||||
"id": "Height"
|
"id": "Height"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"id": "access",
|
||||||
"question": {
|
"question": {
|
||||||
"en": "Who maintains this tower?",
|
"en": "Can this tower be visited?",
|
||||||
"nl": "Wie onderhoudt deze toren?",
|
"nl": "Is deze toren publiek toegankelijk?"
|
||||||
"de": "Wer betreibt diesen Turm?"
|
|
||||||
},
|
},
|
||||||
"render": {
|
"mappings": [
|
||||||
"nl": "Wordt onderhouden door <b>{operator}</b>",
|
{
|
||||||
"en": "Maintained by <b>{operator}</b>",
|
"if": "access=yes",
|
||||||
"de": "Betrieben von <b>{operator}</b>"
|
"then": {
|
||||||
|
"en": "This tower is publicly accessible",
|
||||||
|
"nl": "Deze toren is publiek toegankelijk"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"freeform": {
|
{
|
||||||
"key": "operator"
|
"if": "access=guided",
|
||||||
|
"then": {
|
||||||
|
"en": "This tower can only be visited with a guide",
|
||||||
|
"nl": "Deze toren can enkel bezocht worden met een gids"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"id": "Operator"
|
|
||||||
},
|
|
||||||
"website",
|
|
||||||
{
|
{
|
||||||
"question": {
|
"question": {
|
||||||
"en": "How much does one have to pay to enter this tower?",
|
"en": "How much does one have to pay to enter this tower?",
|
||||||
|
@ -125,7 +131,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"id": "Fee"
|
"id": "Fee",
|
||||||
|
"condition": {
|
||||||
|
"or": [
|
||||||
|
"access=yes",
|
||||||
|
"access=guided"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"builtin": "payment-options",
|
"builtin": "payment-options",
|
||||||
|
@ -139,6 +151,7 @@
|
||||||
},
|
},
|
||||||
"id": "Payment methods"
|
"id": "Payment methods"
|
||||||
},
|
},
|
||||||
|
"website",
|
||||||
{
|
{
|
||||||
"id": "step_count",
|
"id": "step_count",
|
||||||
"question": {
|
"question": {
|
||||||
|
@ -152,6 +165,12 @@
|
||||||
"render": {
|
"render": {
|
||||||
"en": "This tower has {step_count} steps to reach the top",
|
"en": "This tower has {step_count} steps to reach the top",
|
||||||
"nl": "Deze toren heeft {step_count} traptredes"
|
"nl": "Deze toren heeft {step_count} traptredes"
|
||||||
|
},
|
||||||
|
"condition": {
|
||||||
|
"or": [
|
||||||
|
"access=yes",
|
||||||
|
"access=guided"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -175,27 +194,47 @@
|
||||||
"nl": "Deze toren heeft geen lift"
|
"nl": "Deze toren heeft geen lift"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"or": [
|
||||||
|
"access=yes",
|
||||||
|
"access=guided"
|
||||||
]
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"wheelchair-access",
|
|
||||||
"wikipedia"
|
|
||||||
],
|
|
||||||
"presets": [
|
|
||||||
{
|
{
|
||||||
"tags": [
|
"question": {
|
||||||
"man_made=tower",
|
"en": "Who maintains this tower?",
|
||||||
"tower:type=observation"
|
"nl": "Wie onderhoudt deze toren?",
|
||||||
],
|
"de": "Wer betreibt diesen Turm?"
|
||||||
"title": {
|
|
||||||
"en": "observation tower",
|
|
||||||
"nl": "Uitkijktoren",
|
|
||||||
"ru": "смотровая башня",
|
|
||||||
"de": "Beobachtungsturm"
|
|
||||||
},
|
},
|
||||||
"description": {
|
"render": {
|
||||||
"nl": "Een publiek toegankelijke uitkijktoren"
|
"nl": "Wordt onderhouden door <b>{operator}</b>",
|
||||||
|
"en": "Maintained by <b>{operator}</b>",
|
||||||
|
"de": "Betrieben von <b>{operator}</b>"
|
||||||
|
},
|
||||||
|
"freeform": {
|
||||||
|
"key": "operator"
|
||||||
|
},
|
||||||
|
"id": "Operator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"builtin": "wheelchair-access",
|
||||||
|
"override": {
|
||||||
|
"condition": {
|
||||||
|
"and": [
|
||||||
|
"elevator=yes",
|
||||||
|
{
|
||||||
|
"or": [
|
||||||
|
"access=yes",
|
||||||
|
"access=guided"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"wikipedia"
|
||||||
],
|
],
|
||||||
"source": {
|
"source": {
|
||||||
"osmTags": {
|
"osmTags": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue