Add a very basic 'bank'-layer which only shows ATM-status, add banks with ATM to ATM-theme, make ATMs moveable and deletable; fix #1207
This commit is contained in:
parent
2c21e125d9
commit
bb140025bf
5 changed files with 148 additions and 39 deletions
70
assets/layers/bank/bank.json
Normal file
70
assets/layers/bank/bank.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"id": "bank",
|
||||
"description": {
|
||||
"en": "A financial institution to deposit money"
|
||||
},
|
||||
"name": {
|
||||
"en": "Banks"
|
||||
},
|
||||
"title": {
|
||||
"render": "Bank",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": "{name}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "amenity=bank"
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:white;./assets/layers/bank/bank.svg",
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
]
|
||||
}
|
||||
],
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "has_atm",
|
||||
"question": {
|
||||
"en": "Does this bank have an ATM?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "atm=yes",
|
||||
"then": {
|
||||
"en": "This bank has an ATM"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "atm=no",
|
||||
"then": {
|
||||
"en": "This bank does <b>not</b> have an ATM"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "atm=separate",
|
||||
"then": {
|
||||
"en": "This bank does have an ATM, but it is mapped as a different icon"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"filter": [
|
||||
"open_now",
|
||||
{
|
||||
"id": "has_atm",
|
||||
"options": [{
|
||||
"question": {
|
||||
"en": "With an ATM"
|
||||
},
|
||||
"osmTags": "atm=yes"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue