diff --git a/assets/layers/elevator/elevator.json b/assets/layers/elevator/elevator.json new file mode 100644 index 000000000..3aa529028 --- /dev/null +++ b/assets/layers/elevator/elevator.json @@ -0,0 +1,105 @@ +{ + "id": "elevator", + "name": { + "en": "elevator" + }, + "source": { + "osmTags": "elevator=yes" + }, + "minzoom": 13, + "tagRenderings": [ + "images", + { + "id": "door-width", + "render": { + "en": "This elevator's doors have a width of {canonical(door:width) }" + }, + "question": { + "en": "What is the width of this elevator's entrance?" + }, + "freeform": { + "key": "door:width", + "type": "pfloat" + } + }, + { + "id": "elevator-width", + "render": { + "en": "This elevator has a width of {canonical(elevator:width) }" + }, + "question": { + "en": "What is the width of this elevator?" + }, + "freeform": { + "key": "elevator:width", + "type": "pfloat" + } + }, + { + "id": "elevator-depth", + "render": { + "en": "This elevator has a depth of {canonical(elevator:depth) }" + }, + "question": { + "en": "What is the depth of this elevator?" + }, + "freeform": { + "key": "elevator:depth", + "type": "pfloat" + } + } + ], + "mapRendering": [ + { + "icon": { + "render": "./assets/layers/elevator/elevator_wheelchair.svg" + }, + "iconSize": "40,40,bottom", + "location": [ + "point", + "centroid" + ] + } + ], + "presets": [ + { + "title": { + "en": "an elevator", + "nl": "een lift" + }, + "tags": [ + "elevator=yes" + ] + } + ], + "units": [ + { + "appliesToKey": [ + "door:width", + "elevator:width", + "elevator:depth" + ], + "applicableUnits": [ + { + "canonicalDenomination": "m", + "alternativeDenomination": [ + "meter" + ], + "human": { + "en": "meter" + } + }, + { + "canonicalDenomination": "cm", + "alternativeDenomination": [ + "centimeter", + "cms" + ], + "human": { + "en": "centimeter" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/assets/layers/elevator/elevator_wheelchair.svg b/assets/layers/elevator/elevator_wheelchair.svg new file mode 100644 index 000000000..35b934aee --- /dev/null +++ b/assets/layers/elevator/elevator_wheelchair.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/layers/elevator/license_info.json b/assets/layers/elevator/license_info.json new file mode 100644 index 000000000..37b617e4f --- /dev/null +++ b/assets/layers/elevator/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "elevator_wheelchair.svg", + "license": "CC-BY-SA", + "authors": [ + "https://www.ctsteward.com/" + ], + "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 38690d524..274ec5e8e 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -4,7 +4,7 @@ "en": "OnWheels" }, "description": { - "en": "On this map, publicly weelchair accessible places are shown and can be easily added" + "en": "On this map, publicly wheelchair accessible places are shown and can be easily added" }, "maintainer": "MapComplete", "icon": "./assets/themes/onwheels/crest.svg", @@ -30,7 +30,8 @@ "viewpoint", "doctors", "reception_desk", - "walls_and_buildings" + "walls_and_buildings", + "elevator" ], "overrideAll": { "+calculatedTags": [