Dynamic icon size

This commit is contained in:
Robin van der Linde 2022-12-26 13:58:40 +01:00
parent aec80fa9a7
commit 4ae84537f7
No known key found for this signature in database
GPG key ID: 53956B3252478F0D

View file

@ -181,7 +181,20 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/parking.svg",
"iconSize": "40,40,bottom"
"iconSize": {
"render": "20,20,bottom",
"mappings": [
{
"if": {
"or": [
"capacity:disabled>0",
"capacity:disabled=yes"
]
},
"then": "40,40,bottom"
}
]
}
},
{
"color": "#225f92"