Themes: add atm-option to postoffice, add postoffices to ATM theme, fix #1551

This commit is contained in:
Pieter Vander Vennet 2023-09-01 15:02:30 +02:00
parent 52c684dab3
commit c4a9fa81f2
2 changed files with 59 additions and 2 deletions

View file

@ -406,6 +406,36 @@
}
}
]
},
{
"id": "has_atm",
"question": {
"en": "Does this post office have an ATM?",
"nl": "Heeft dit postkantoor een bankautomaat?"
},
"mappings": [
{
"if": "atm=yes",
"then": {
"en": "This post office has an ATM",
"nl": "Dit postkantoor heeft een bankautomaat"
}
},
{
"if": "atm=no",
"then": {
"en": "This post office does <b>not</b> have an ATM",
"nl": "Dit postkantoor heeft <b>geen</b> bankautomaaat"
}
},
{
"if": "atm=separate",
"then": {
"en": "This post office does have an ATM, but it is mapped as a different icon",
"nl": "Dit postkantoor heeft een bankautomaat, maar deze staat apart op de kaart aangeduid"
}
}
]
}
],
"presets": [

View file

@ -54,7 +54,7 @@
"override": {
"minzoom": 18,
"filter": {
"sameAs": "bank"
"sameAs": "bank_with_atm"
}
}
},
@ -126,6 +126,33 @@
"all_tags"
]
}
},
{
"builtin": "postoffices",
"override": {
"id": "post_offices_with_atm",
"minzoom": 14,
"=presets": [],
"source": {
"osmTags": {
"and+": [
"atm=yes"
]
}
},
"filter": [
"open_now"
]
}
},
{
"builtin": "postoffices",
"override": {
"minzoom": 18,
"filter": {
"sameAs": "post_offices_with_atm"
}
}
}
]
}
}