forked from MapComplete/MapComplete
Add opening hours to playgrounds and pitches
This commit is contained in:
parent
1b1ec9f15d
commit
fa238092bc
4 changed files with 157 additions and 69 deletions
|
@ -288,6 +288,21 @@
|
|||
"nl": "Van zonsopgang tot zonsondergang",
|
||||
"en": "Accessible from sunrise till sunset"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "opening_hours=24/7",
|
||||
"then": {
|
||||
"nl": "Dag en nacht toegankelijk",
|
||||
"en": "Always accessible"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "opening_hours=",
|
||||
"then": {
|
||||
"nl": "Dag en nacht toegankelijk",
|
||||
"en": "Always accessible"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -300,6 +315,18 @@
|
|||
"icon": {
|
||||
"render": "https://upload.wikimedia.org/wikipedia/commons/0/00/Map_icons_by_Scott_de_Jonge_-_playground.svg"
|
||||
},
|
||||
"iconOverlays": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"opening_hours!=24/7",
|
||||
"opening_hours~*"
|
||||
]
|
||||
},
|
||||
"then": "isOpen",
|
||||
"badge": true
|
||||
}
|
||||
],
|
||||
"width": {
|
||||
"render": "1"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue