Themes(aed): change marker size and colour based on access and opening hours

This commit is contained in:
Midgard 2024-12-18 02:55:08 +01:00
parent 1ee0e5f462
commit 1709ccf403
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -52,17 +52,109 @@
{
"icon": "square",
"color": {
"render": "#008754",
"render": "#878787",
"mappings": [
{
"if": "_recently_surveyed=true",
"if": {
"or": [
"access=private",
"access=no"
]
},
"then": "#876563"
},
{
"if": "access=customers",
"then": "#87763d"
},
{
"if": {
"or": [
"opening_hours=",
"opening_hours=unknown",
"opening_hours=closed",
"opening_hours=off"
]
},
"then": "#87763d"
},
{
"if": {
"and": [
"_recently_surveyed=true",
{
"or": [
"access=yes",
"access=public",
"access=permissive"
]
}
]
},
"then": "#28ba3d"
},
{
"if": {
"or": [
"access=yes",
"access=public",
"access=permissive"
]
},
"then": "#008754"
}
]
},
"iconSize": {
"render": "20,20",
"mappings": [
{
"if": {
"and": [
{
"or": [
"access=yes",
"access=public",
"access=permissive"
]
},
"opening_hours!=",
"opening_hours!=unknown",
"opening_hours!=closed",
"opening_hours!=off"
]
},
"then": "40,40"
}
]
}
},
{
"icon": "./assets/layers/defibrillator/defibrillator.svg"
"icon": "./assets/layers/defibrillator/defibrillator.svg",
"iconSize": {
"#": "Keep in sync with the same code above",
"render": "20,20",
"mappings": [
{
"if": {
"and": [
{
"or": [
"access=yes",
"access=public",
"access=permissive"
]
},
"opening_hours!=",
"opening_hours!=unknown",
"opening_hours!=closed",
"opening_hours!=off"
]
},
"then": "40,40"
}
]
}
}
],
"location": [