From 1486bc3f89162d84b46ab3c1d531cd63f57e9cff Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 24 Jul 2022 12:10:08 +0200 Subject: [PATCH 1/5] Icon badge for disabled parking --- assets/layers/parking/parking.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/assets/layers/parking/parking.json b/assets/layers/parking/parking.json index 0e7d24f8cd..86e2542245 100644 --- a/assets/layers/parking/parking.json +++ b/assets/layers/parking/parking.json @@ -200,6 +200,17 @@ "location": [ "point", "centroid" + ], + "iconBadges": [ + { + "if": { + "and": [ + "capacity:disabled~*", + "capacity:disabled!=no" + ] + }, + "then": "circle:white;./assets/layers/toilet/wheelchair.svg" + } ] }, { From 45187168244016c75362d6567928fe8c914a1082 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 24 Jul 2022 12:10:27 +0200 Subject: [PATCH 2/5] Use onwheels icon for parking --- assets/themes/onwheels/license_info.json | 10 ++++++++++ assets/themes/onwheels/onwheels.json | 18 +++++++++++------- assets/themes/onwheels/parking.svg | 1 + 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 assets/themes/onwheels/parking.svg diff --git a/assets/themes/onwheels/license_info.json b/assets/themes/onwheels/license_info.json index 9f2dcf81aa..dab6006e72 100644 --- a/assets/themes/onwheels/license_info.json +++ b/assets/themes/onwheels/license_info.json @@ -6,5 +6,15 @@ "Free Wheelies" ], "sources": [] + }, + { + "path": "parking.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] } ] \ No newline at end of file diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index 274ec5e8ec..a8a0d4b8db 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -22,7 +22,16 @@ "entrance", "food", "kerbs", - "parking", + { + "builtin": "parking", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/parking.svg" + } + ] + } + }, "picnic_table", "school", "shops", @@ -68,11 +77,6 @@ ] } ], - "minzoom": "15", - "mapRendering": [ - { - "label": null - } - ] + "minzoom": "15" } } \ No newline at end of file diff --git a/assets/themes/onwheels/parking.svg b/assets/themes/onwheels/parking.svg new file mode 100644 index 0000000000..2b4df1489d --- /dev/null +++ b/assets/themes/onwheels/parking.svg @@ -0,0 +1 @@ + \ No newline at end of file From 3545fbb1ee56b46da3ae1429326d731008e4e158 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 24 Jul 2022 13:03:34 +0200 Subject: [PATCH 3/5] Use more Onwheels icons --- assets/layers/toilet/toilet.json | 16 ++++- assets/themes/onwheels/bicycle_pump.svg | 1 + assets/themes/onwheels/cafe.svg | 1 + assets/themes/onwheels/hotel.svg | 1 + assets/themes/onwheels/license_info.json | 70 +++++++++++++++++++++ assets/themes/onwheels/onwheels.json | 78 ++++++++++++++++++++++-- assets/themes/onwheels/repair.svg | 1 + assets/themes/onwheels/restaurant.svg | 1 + assets/themes/onwheels/shop.svg | 1 + assets/themes/onwheels/toilet.svg | 1 + 10 files changed, 163 insertions(+), 8 deletions(-) create mode 100644 assets/themes/onwheels/bicycle_pump.svg create mode 100644 assets/themes/onwheels/cafe.svg create mode 100644 assets/themes/onwheels/hotel.svg create mode 100644 assets/themes/onwheels/repair.svg create mode 100644 assets/themes/onwheels/restaurant.svg create mode 100644 assets/themes/onwheels/shop.svg create mode 100644 assets/themes/onwheels/toilet.svg diff --git a/assets/layers/toilet/toilet.json b/assets/layers/toilet/toilet.json index 794824f3f0..28b42e3b89 100644 --- a/assets/layers/toilet/toilet.json +++ b/assets/layers/toilet/toilet.json @@ -274,6 +274,13 @@ "ru": "Недоступно пользователям кресел-колясок", "es": "Sin acceso para sillas de ruedas" } + }, + { + "if": "wheelchair=designated", + "then": { + "en": "There is only a dedicated toilet for wheelchair users", + "nl": "Er is alleen een toilet voor rolstoelgebruikers" + } } ] }, @@ -533,7 +540,9 @@ "de": "Rollstuhlgerecht", "es": "Accesible con sillas de ruedas" }, - "osmTags": "wheelchair=yes" + "osmTags": { + "or": ["wheelchair=yes", "wheelchair=designated"] + } } ] }, @@ -609,7 +618,9 @@ "render": "./assets/layers/toilet/toilets.svg", "mappings": [ { - "if": "wheelchair=yes", + "if": { + "or": ["wheelchair=yes", "wheelchair=designated"] + }, "then": "circle:white;./assets/layers/toilet/wheelchair.svg" }, { @@ -623,6 +634,7 @@ } ] }, + "iconBadges": [ { "if": "opening_hours~*", diff --git a/assets/themes/onwheels/bicycle_pump.svg b/assets/themes/onwheels/bicycle_pump.svg new file mode 100644 index 0000000000..98d33fb00f --- /dev/null +++ b/assets/themes/onwheels/bicycle_pump.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/cafe.svg b/assets/themes/onwheels/cafe.svg new file mode 100644 index 0000000000..266130911f --- /dev/null +++ b/assets/themes/onwheels/cafe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/hotel.svg b/assets/themes/onwheels/hotel.svg new file mode 100644 index 0000000000..3f76a6ad80 --- /dev/null +++ b/assets/themes/onwheels/hotel.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 dab6006e72..77105e53d7 100644 --- a/assets/themes/onwheels/license_info.json +++ b/assets/themes/onwheels/license_info.json @@ -1,4 +1,24 @@ [ + { + "path": "bicycle_pump.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "cafe.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, { "path": "crest.svg", "license": "CC0", @@ -7,6 +27,16 @@ ], "sources": [] }, + { + "path": "hotel.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, { "path": "parking.svg", "license": "CC-BY-SA", @@ -16,5 +46,45 @@ "sources": [ "https://www.ctsteward.com/" ] + }, + { + "path": "repair.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "restaurant.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "shop.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "toilet.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] } ] \ No newline at end of file diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index a8a0d4b8db..e5cab61f7d 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -16,26 +16,92 @@ "widenFactor": 2, "hideFromOverview": true, "layers": [ - "bike_repair_station", + { + "builtin": "bike_repair_station", + "override": { + "mapRendering": [ + { + "icon": { + "render": "./assets/themes/onwheels/repair.svg", + "mappings": [ + { + "if": "service:bicycle:pump=yes", + "then": "./assets/themes/onwheels/bicycle_pump.svg" + } + ] + }, + "iconSize": "40,40,bottom" + } + ] + } + }, "bike_shop", - "cafe_pub", + { + "builtin": "cafe_pub", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/cafe.svg", + "iconSize": "40,40,bottom" + } + ] + } + }, "entrance", - "food", + { + "builtin": "food", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/restaurant.svg", + "iconSize": "40,40,bottom" + } + ] + } + }, "kerbs", { "builtin": "parking", "override": { "mapRendering": [ { - "icon": "./assets/themes/onwheels/parking.svg" + "icon": "./assets/themes/onwheels/parking.svg", + "iconSize": "40,40,bottom" + }, + { + "color": "#225f92" } ] } }, "picnic_table", "school", - "shops", - "toilet", + { + "builtin": "shops", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/shop.svg", + "iconSize": "40,40,bottom", + "label": null + }, + { + "color": "#ea4a94" + } + ] + } + }, + { + "builtin": "toilet", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/toilet.svg", + "iconSize": "40,40,bottom" + } + ] + } + }, "viewpoint", "doctors", "reception_desk", diff --git a/assets/themes/onwheels/repair.svg b/assets/themes/onwheels/repair.svg new file mode 100644 index 0000000000..b0924247c0 --- /dev/null +++ b/assets/themes/onwheels/repair.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/restaurant.svg b/assets/themes/onwheels/restaurant.svg new file mode 100644 index 0000000000..86fe5c5b1f --- /dev/null +++ b/assets/themes/onwheels/restaurant.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/shop.svg b/assets/themes/onwheels/shop.svg new file mode 100644 index 0000000000..01ce20a09d --- /dev/null +++ b/assets/themes/onwheels/shop.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/themes/onwheels/toilet.svg b/assets/themes/onwheels/toilet.svg new file mode 100644 index 0000000000..81d9abdf46 --- /dev/null +++ b/assets/themes/onwheels/toilet.svg @@ -0,0 +1 @@ + \ No newline at end of file From ef5323bdfcfd3325a021c1bece30b50707b77d0d Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 24 Jul 2022 13:06:58 +0200 Subject: [PATCH 4/5] Disable label for food --- assets/themes/onwheels/onwheels.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index e5cab61f7d..36e5d7c487 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -54,7 +54,8 @@ "mapRendering": [ { "icon": "./assets/themes/onwheels/restaurant.svg", - "iconSize": "40,40,bottom" + "iconSize": "40,40,bottom", + "label": null } ] } 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 5/5] 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 0000000000..884d7849a9 --- /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 0000000000..6d0c787ed5 --- /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 0000000000..96a7c7b24e --- /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 77105e53d7..b383bff79f 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 36e5d7c487..745f41d8ad 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 0000000000..13b9b15c8f --- /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 0000000000..0e818387a5 --- /dev/null +++ b/assets/themes/onwheels/reception.svg @@ -0,0 +1 @@ + \ No newline at end of file