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 c1008dc617
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -48,15 +48,83 @@
}, },
"pointRendering": [ "pointRendering": [
{ {
"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"
}
]
},
"marker": [ "marker": [
{ {
"icon": "square", "icon": "square",
"color": { "color": {
"render": "#008754", "render": "#878787",
"mappings": [ "mappings": [
{ {
"if": "_recently_surveyed=true", "if": {
"or": [
"access=private",
"access=no"
]
},
"then": "#c3acab"
},
{
"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" "then": "#28ba3d"
},
{
"if": {
"or": [
"access=yes",
"access=public",
"access=permissive"
]
},
"then": "#008754"
} }
] ]
} }