From 09e83784c566bc35defb771619fc6a9bc4a2f2d0 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 14 Jul 2022 15:17:09 +0200 Subject: [PATCH] Add some more icons --- assets/themes/onwheels/cone.svg | 1 + assets/themes/onwheels/doctor.svg | 1 + assets/themes/onwheels/hospital.svg | 1 + assets/themes/onwheels/license_info.json | 50 +++++++++++++++ assets/themes/onwheels/onwheels.json | 78 +++++++++++++++++++++--- assets/themes/onwheels/pharmacy.svg | 1 + assets/themes/onwheels/reception.svg | 1 + 7 files changed, 123 insertions(+), 10 deletions(-) create mode 100644 assets/themes/onwheels/cone.svg create mode 100644 assets/themes/onwheels/doctor.svg create mode 100644 assets/themes/onwheels/hospital.svg create mode 100644 assets/themes/onwheels/pharmacy.svg create mode 100644 assets/themes/onwheels/reception.svg diff --git a/assets/themes/onwheels/cone.svg b/assets/themes/onwheels/cone.svg new file mode 100644 index 000000000..884d7849a --- /dev/null +++ b/assets/themes/onwheels/cone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/doctor.svg b/assets/themes/onwheels/doctor.svg new file mode 100644 index 000000000..6d0c787ed --- /dev/null +++ b/assets/themes/onwheels/doctor.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/hospital.svg b/assets/themes/onwheels/hospital.svg new file mode 100644 index 000000000..96a7c7b24 --- /dev/null +++ b/assets/themes/onwheels/hospital.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/license_info.json b/assets/themes/onwheels/license_info.json index 77105e53d..b383bff79 100644 --- a/assets/themes/onwheels/license_info.json +++ b/assets/themes/onwheels/license_info.json @@ -19,6 +19,16 @@ "https://www.ctsteward.com/" ] }, + { + "path": "cone.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, { "path": "crest.svg", "license": "CC0", @@ -27,6 +37,26 @@ ], "sources": [] }, + { + "path": "doctor.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "hospital.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, { "path": "hotel.svg", "license": "CC-BY-SA", @@ -47,6 +77,26 @@ "https://www.ctsteward.com/" ] }, + { + "path": "pharmacy.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "reception.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, { "path": "repair.svg", "license": "CC-BY-SA", diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index 36e5d7c48..745f41d8a 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -24,11 +24,11 @@ "icon": { "render": "./assets/themes/onwheels/repair.svg", "mappings": [ - { - "if": "service:bicycle:pump=yes", - "then": "./assets/themes/onwheels/bicycle_pump.svg" - } - ] + { + "if": "service:bicycle:pump=yes", + "then": "./assets/themes/onwheels/bicycle_pump.svg" + } + ] }, "iconSize": "40,40,bottom" } @@ -42,7 +42,8 @@ "mapRendering": [ { "icon": "./assets/themes/onwheels/cafe.svg", - "iconSize": "40,40,bottom" + "iconSize": "40,40,bottom", + "label": null } ] } @@ -60,7 +61,18 @@ ] } }, - "kerbs", + { + "builtin": "kerbs", + "override": { + "mapRendering": [ + { + "icon": { + "render": "./assets/themes/onwheels/cone.svg" + } + } + ] + } + }, { "builtin": "parking", "override": { @@ -104,8 +116,54 @@ } }, "viewpoint", - "doctors", - "reception_desk", + { + "builtin": "pharmacy", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/pharmacy.svg", + "iconSize": "40,40,bottom", + "label": null + } + ] + } + }, + { + "builtin": "doctors", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/doctor.svg", + "iconSize": "40,40,bottom" + } + ] + } + }, + { + "builtin": "hospital", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/hospital.svg", + "iconSize": "40,40,bottom" + }, + { + "color": "#dd463b" + } + ] + } + }, + { + "builtin": "reception_desk", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/reception.svg", + "iconSize": "40,40,bottom" + } + ] + } + }, "walls_and_buildings", "elevator" ], @@ -144,6 +202,6 @@ ] } ], - "minzoom": "15" + "minzoom": 15 } } \ No newline at end of file diff --git a/assets/themes/onwheels/pharmacy.svg b/assets/themes/onwheels/pharmacy.svg new file mode 100644 index 000000000..13b9b15c8 --- /dev/null +++ b/assets/themes/onwheels/pharmacy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/reception.svg b/assets/themes/onwheels/reception.svg new file mode 100644 index 000000000..0e818387a --- /dev/null +++ b/assets/themes/onwheels/reception.svg @@ -0,0 +1 @@ + \ No newline at end of file