mapcomplete/assets/themes/onwheels/onwheels.json
2022-07-31 13:33:45 +02:00

398 lines
No EOL
9.9 KiB
JSON

{
"id": "onwheels",
"title": {
"en": "OnWheels",
"de": "Auf Rädern",
"fr": "OnWheels",
"nl": "OnWheels"
},
"description": {
"en": "On this map, publicly weelchair accessible places are shown and can be easily added",
"de": "Auf dieser Karte werden öffentlich zugängliche Orte für Rollstuhlfahrer angezeigt und können leicht hinzugefügt werden",
"fr": "Sur cette carte nous pouvons voir et ajouter les différents endroits publiques accessibles aux chaises roulantes",
"nl": "Op deze kaart kan je informatie rond rolstoeltoegankelijkheid zien, zoals toegangsdeuren met hun breedte en drempelhoogte, toiletten met toegankelijkheidsinformatie, recepties maar ook winkels, cafés en restaurants."
},
"maintainer": "MapComplete",
"icon": "./assets/themes/onwheels/crest.svg",
"version": "0",
"startLat": 50.86622,
"defaultBackgroundId": "CartoDB.Voyager",
"startLon": 4.350103,
"startZoom": 17,
"widenFactor": 2,
"hideFromOverview": false,
"layers": [
{
"builtin": "indoors",
"override": {
"minzoom": 19,
"name": null,
"passAllFeatures": true
}
},
{
"builtin": "pedestrian_path",
"override": {
"name": null,
"tagRendering": null,
"title": "null",
"minzoom": 19,
"shownByDefault": false
}
},
{
"builtin": "cycleways_and_roads",
"override": {
"name": null,
"shownByDefault": false
}
},
{
"builtin": "cafe_pub",
"override": {
"minzoom": 15,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/cafe.svg",
"iconSize": "40,40,bottom",
"label": null
}
]
}
},
{
"builtin": "entrance",
"override": {
"minzoom": 19,
"mapRendering": [
{
"icon": "circle:white;./assets/themes/onwheels/entrance.svg",
"iconSize": "40,40,center"
}
],
"syncSelection": "theme-only",
"filter": [
{
"id": "width",
"options": [
{
"question": {
"en": "Any/No width info",
"de": "Beliebig/Keine Breiteninformationen",
"nl": "All kerbs"
}
},
{
"osmTags": "width=",
"question": {
"en": "Without width info",
"de": "Beliebige Breiteninformationen",
"nl": "Geen breedtes gekend"
}
}
]
}
]
}
},
{
"builtin": "food",
"override": {
"minzoom": 15,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/restaurant.svg",
"iconSize": "40,40,bottom",
"label": null
}
]
}
},
{
"builtin": "kerbs",
"override": {
"minzoom": 19,
"syncSelection": "theme-only",
"mapRendering": [
{
"icon": {
"render": "./assets/themes/onwheels/cone.svg"
}
}
],
"=filter": [
{
"id": "kerb-type",
"options": [
{
"question": {
"en": "All types of kerbs",
"nl": "Alle typen stoepranden",
"de": "Alle Arten von Bordsteinen"
}
},
{
"osmTags": "kerb=raised",
"question": {
"en": "Raised kerb (>3 cm)",
"nl": "Hoge stoeprand (>3 cm)",
"de": "Erhöhter Bordstein (>3 cm)"
}
},
{
"osmTags": "kerb=lowered",
"question": {
"en": "Lowered kerb (~3 cm)",
"nl": "Verlaagde stoeprand (~3 cm)",
"de": "Abgesenkter Bordstein (~3 cm)"
}
},
{
"osmTags": "kerb=flush",
"question": {
"en": "Flush kerb (~0cm)",
"nl": "Vlakke stoeprand (~0cm)",
"de": "Bündiger Bordstein (~0cm)"
}
}
]
}
]
}
},
{
"builtin": "parking",
"override": {
"minzoom": 15,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/parking.svg",
"iconSize": "40,40,bottom"
},
{
"color": "#225f92"
}
]
}
},
{
"builtin": "shops",
"override": {
"minzoom": 15,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/shop.svg",
"iconSize": "40,40,bottom",
"label": null
},
{
"color": "#ea4a94"
}
]
}
},
{
"builtin": "toilet",
"override": {
"minzoom": 19,
"syncSelection": "theme-only",
"mapRendering": [
{
"icon": "./assets/themes/onwheels/toilet.svg",
"iconSize": "40,40,bottom"
}
]
}
},
{
"builtin": "pharmacy",
"override": {
"minzoom": 15,
"shownByDefault": false,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/pharmacy.svg",
"iconSize": "40,40,bottom",
"label": null
}
]
}
},
{
"builtin": "doctors",
"shownByDefault": false,
"override": {
"minzoom": 15,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/doctor.svg",
"iconSize": "40,40,bottom"
}
]
}
},
{
"builtin": "hospital",
"override": {
"minzoom": 15,
"shownByDefault": false,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/hospital.svg",
"iconSize": "40,40,bottom"
},
{
"color": "#dd463b"
}
]
}
},
{
"builtin": "reception_desk",
"override": {
"minzoom": 19,
"syncSelection": "theme-only"
}
},
"walls_and_buildings",
{
"builtin": "elevator",
"override": {
"minzoom": 19,
"syncSelection": "theme-only",
"mapRendering": [
{
"icon": "circle:white;./assets/themes/onwheels/elevator.svg",
"iconSize": "40,40,bottom"
}
]
}
},
{
"builtin": "hotel",
"override": {
"minzoom": 15,
"shownByDefault": false,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/hotel.svg",
"iconSize": "40,40,bottom"
}
]
}
},
{
"builtin": "governments",
"override": {
"minzoom": 15,
"mapRendering": [
{
"icon": "./assets/themes/onwheels/government.svg",
"iconSize": "40,40,bottom"
}
]
}
},
{
"builtin": "current_view",
"override": {
"+mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": "statistics"
}
],
"=title": {
"render": {
"en": "Statistics",
"de": "Statistik"
}
},
"tagRenderings": [
{
"id": "stats",
"render": "{statistics()}"
}
]
}
},
{
"builtin": "maproulette_challenge",
"override": {
"source": {
"geoJson": "https://maproulette.org/api/v2/challenge/view/28012"
},
"calculatedTags": [
"_closest_osm_hotel=feat.closest('hotel')?.properties?.id",
"_closest_osm_hotel_distance=feat.distanceTo(feat.properties._closest_osm_hotel)",
"_has_closeby_feature=Number(feat.properties._closest_osm_hotel_distance) < 50 ? 'yes' : 'no'"
],
"+tagRenderings": [
{
"id": "import-button",
"condition": "_has_closeby_feature=no",
"render": {
"special": {
"type": "import_button",
"targetLayer": "hotel",
"tags": "tags",
"text": {
"en": "Import",
"de": "Import"
},
"icon": "./assets/svg/addSmall.svg",
"location_picker": "photo",
"maproulette_id": "mr_taskId"
}
}
},
{
"id": "tag-apply-button",
"condition": "_has_closeby_feature=yes",
"render": {
"special": {
"type": "tag_apply",
"tags_to_apply": "$tags",
"message": {
"en": "Add all the suggested tags",
"de": "Alle vorgeschlagenen Tags hinzufügen"
},
"image": "./assets/svg/addSmall.svg",
"id_of_object_to_apply_this_one": "_closest_osm_hotel"
}
}
}
]
}
}
],
"overrideAll": {
"+calculatedTags": [
"_enclosing_building=feat.enclosingFeatures('walls_and_buildings')?.map(f => f.feat.properties.id)?.at(0)"
],
"tagRenderings+": [
{
"id": "_stolen_entrances",
"condition": {
"and": [
"entrance=",
"kerb=",
"current_view!=yes",
"door="
]
},
"render": {
"special": {
"type": "steal",
"featureId": "_enclosing_building",
"tagRenderingId": "walls_and_buildings.entrance_info; walls_and_buildings.biggest_width"
}
}
}
]
},
"enableDownload": true
}