diff --git a/assets/layers/parking/parking.json b/assets/layers/parking/parking.json index 0e7d24f8c..86e254224 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" + } ] }, { diff --git a/assets/layers/toilet/toilet.json b/assets/layers/toilet/toilet.json index 794824f3f..28b42e3b8 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 000000000..98d33fb00 --- /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 000000000..266130911 --- /dev/null +++ b/assets/themes/onwheels/cafe.svg @@ -0,0 +1 @@ + \ No newline at end of file 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/hotel.svg b/assets/themes/onwheels/hotel.svg new file mode 100644 index 000000000..3f76a6ad8 --- /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 9f2dcf81a..b383bff79 100644 --- a/assets/themes/onwheels/license_info.json +++ b/assets/themes/onwheels/license_info.json @@ -1,4 +1,34 @@ [ + { + "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": "cone.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, { "path": "crest.svg", "license": "CC0", @@ -6,5 +36,105 @@ "Free Wheelies" ], "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", + "authors": [ + "CT Steward" + ], + "sources": [ + "https://www.ctsteward.com/" + ] + }, + { + "path": "parking.svg", + "license": "CC-BY-SA", + "authors": [ + "CT Steward" + ], + "sources": [ + "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", + "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 274ec5e8e..745f41d8a 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -16,20 +16,154 @@ "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", + "label": null + } + ] + } + }, "entrance", - "food", - "kerbs", - "parking", + { + "builtin": "food", + "override": { + "mapRendering": [ + { + "icon": "./assets/themes/onwheels/restaurant.svg", + "iconSize": "40,40,bottom", + "label": null + } + ] + } + }, + { + "builtin": "kerbs", + "override": { + "mapRendering": [ + { + "icon": { + "render": "./assets/themes/onwheels/cone.svg" + } + } + ] + } + }, + { + "builtin": "parking", + "override": { + "mapRendering": [ + { + "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", + { + "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" ], @@ -68,11 +202,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 000000000..2b4df1489 --- /dev/null +++ b/assets/themes/onwheels/parking.svg @@ -0,0 +1 @@ + \ 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 diff --git a/assets/themes/onwheels/repair.svg b/assets/themes/onwheels/repair.svg new file mode 100644 index 000000000..b0924247c --- /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 000000000..86fe5c5b1 --- /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 000000000..01ce20a09 --- /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 000000000..81d9abdf4 --- /dev/null +++ b/assets/themes/onwheels/toilet.svg @@ -0,0 +1 @@ + \ No newline at end of file