From 4ae84537f785921e675810fe03c6a20ffa895cd2 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Mon, 26 Dec 2022 13:58:40 +0100 Subject: [PATCH] Dynamic icon size --- assets/themes/onwheels/onwheels.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index 23c32ffe8..2433b8933 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -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"