From aec80fa9a7b21ff4c03dad266a6816b402c2adf2 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Mon, 26 Dec 2022 13:58:10 +0100 Subject: [PATCH] Add disabled icon and text --- assets/layers/parking_spaces/parking_spaces.json | 11 ++++++++++- assets/themes/onwheels/onwheels.json | 14 ++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/assets/layers/parking_spaces/parking_spaces.json b/assets/layers/parking_spaces/parking_spaces.json index 8648b02d5..975485559 100644 --- a/assets/layers/parking_spaces/parking_spaces.json +++ b/assets/layers/parking_spaces/parking_spaces.json @@ -171,7 +171,16 @@ "en": "Parking Space", "de": "Stellplatz", "nl": "Parkeerplek" - } + }, + "mappings": [ + { + "if": "parking_space=disabled", + "then": { + "en": "Disabled Parking Space", + "nl": "Parkeerplek voor gehandicapten" + } + } + ] }, "mapRendering": [ { diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index e4e60d47a..23c32ffe8 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -199,9 +199,19 @@ { "icon": { "mappings": null - } + }, + "iconSize": "30,30,center", + "iconBadges": [ + { + "if": "parking_space=disabled", + "then": "./assets/layers/toilet/wheelchair.svg" + } + ] } - ] + ], + "name": { + "en": "Disabled parking spaces" + } }, "hideTagRenderingsWithLabels": [ "type",