forked from MapComplete/MapComplete
Fix performance, add 'isClosed' badge to shops
This commit is contained in:
parent
efd7631837
commit
a9dfce72a6
18 changed files with 334 additions and 124 deletions
|
@ -67,6 +67,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"titleIcons": [
|
||||
"isOpen"
|
||||
],
|
||||
"description": {
|
||||
"en": "A shop",
|
||||
"fr": "Un magasin"
|
||||
|
@ -238,23 +241,8 @@
|
|||
},
|
||||
"iconOverlays": [
|
||||
{
|
||||
"if": "_isOpen=yes",
|
||||
"then": "clock:#0f0",
|
||||
"badge": true
|
||||
},
|
||||
{
|
||||
"if": "_isOpen=no",
|
||||
"then": "circle:#f00;clock:#fff",
|
||||
"badge": true
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"_isOpen=",
|
||||
"opening_hours~*"
|
||||
]
|
||||
},
|
||||
"then": "clock:#ff0",
|
||||
"if": "opening_hours~*",
|
||||
"then": "isOpen",
|
||||
"badge": true
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue