mapcomplete/assets/themes/onwheels/onwheels.json

406 lines
11 KiB
JSON
Raw Normal View History

{
"id": "onwheels",
"title": {
2022-07-26 10:51:14 +02:00
"en": "OnWheels",
"de": "Auf Rädern",
"fr": "OnWheels"
},
"description": {
2022-07-26 10:51:14 +02:00
"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"
},
"maintainer": "MapComplete",
"icon": "./assets/themes/onwheels/crest.svg",
"version": "0",
2022-07-25 17:52:51 +02:00
"startLat": 50.86622,
"defaultBackgroundId": "CartoDB.Voyager",
2022-07-25 17:52:51 +02:00
"startLon": 4.350103,
"startZoom": 17,
"widenFactor": 2,
2022-07-25 16:45:11 +02:00
"hideFromOverview": false,
"layers": [
{
"builtin": "indoors",
"override": {
"minzoom": 19,
"name": null,
"passAllFeatures": true
}
},
2022-07-25 17:52:51 +02:00
{
"builtin": "pedestrian_path",
"override": {
"title": {
2022-07-27 10:13:31 +02:00
"en": "Pedestrian path",
"de": "Fußgängerweg"
2022-07-25 17:52:51 +02:00
},
"name": null,
"shownByDefault": false
}
},
{
"builtin": "cycleways_and_roads",
"override": {
"name": null,
"shownByDefault": false
}
},
2022-07-24 13:03:34 +02:00
{
"builtin": "cafe_pub",
"override": {
"minzoom": 15,
2022-07-24 13:03:34 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/cafe.svg",
2022-07-14 15:17:09 +02:00
"iconSize": "40,40,bottom",
"label": null
2022-07-24 13:03:34 +02:00
}
]
}
},
{
"builtin": "entrance",
"override": {
"minzoom": 19,
"mapRendering": [
{
2022-07-27 17:35:22 +02:00
"icon": "circle:white;./assets/themes/onwheels/entrance.svg",
2022-07-26 16:51:00 +02:00
"iconSize": "40,40,center"
}
2022-07-26 12:05:02 +02:00
],
2022-07-25 17:52:51 +02:00
"syncSelection": "theme-only",
2022-07-26 16:58:51 +02:00
"filter": [
2022-07-25 17:52:51 +02:00
{
"id": "width",
"options": [
{
2022-07-26 16:58:51 +02:00
"question": {
2022-07-27 10:13:31 +02:00
"en": "Any/No width info",
"de": "Beliebig/Keine Breiteninformationen"
2022-07-25 17:52:51 +02:00
}
},
{
"osmTags": "width=",
"question": {
2022-07-27 10:13:31 +02:00
"en": "Any width info",
"de": "Beliebige Breiteninformationen"
2022-07-25 17:52:51 +02:00
}
}
]
}
]
}
},
2022-07-24 13:03:34 +02:00
{
"builtin": "food",
"override": {
"minzoom": 15,
2022-07-24 13:03:34 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/restaurant.svg",
2022-07-24 13:06:58 +02:00
"iconSize": "40,40,bottom",
"label": null
2022-07-24 13:03:34 +02:00
}
]
}
},
2022-07-14 15:17:09 +02:00
{
"builtin": "kerbs",
"override": {
"minzoom": 19,
2022-07-25 17:52:51 +02:00
"syncSelection": "theme-only",
2022-07-14 15:17:09 +02:00
"mapRendering": [
{
"icon": {
"render": "./assets/themes/onwheels/cone.svg"
}
}
2022-07-25 17:52:51 +02:00
],
"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)"
}
}
]
}
2022-07-14 15:17:09 +02:00
]
}
},
2022-07-24 12:10:27 +02:00
{
"builtin": "parking",
"override": {
"minzoom": 15,
2022-07-24 12:10:27 +02:00
"mapRendering": [
{
2022-07-24 13:03:34 +02:00
"icon": "./assets/themes/onwheels/parking.svg",
"iconSize": "40,40,bottom"
},
{
"color": "#225f92"
2022-07-24 12:10:27 +02:00
}
]
}
},
2022-07-24 13:03:34 +02:00
{
"builtin": "shops",
"override": {
"minzoom": 15,
2022-07-24 13:03:34 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/shop.svg",
"iconSize": "40,40,bottom",
"label": null
},
{
"color": "#ea4a94"
}
]
}
},
{
"builtin": "toilet",
"override": {
"minzoom": 19,
2022-07-25 17:52:51 +02:00
"syncSelection": "theme-only",
2022-07-24 13:03:34 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/toilet.svg",
"iconSize": "40,40,bottom"
}
]
}
},
2022-07-14 15:17:09 +02:00
{
"builtin": "pharmacy",
"override": {
"minzoom": 15,
2022-07-26 16:51:00 +02:00
"shownByDefault": false,
2022-07-14 15:17:09 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/pharmacy.svg",
"iconSize": "40,40,bottom",
"label": null
}
]
}
},
{
"builtin": "doctors",
2022-07-26 16:51:00 +02:00
"shownByDefault": false,
2022-07-14 15:17:09 +02:00
"override": {
"minzoom": 15,
2022-07-14 15:17:09 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/doctor.svg",
"iconSize": "40,40,bottom"
}
]
}
},
{
"builtin": "hospital",
"override": {
"minzoom": 15,
2022-07-26 16:51:00 +02:00
"shownByDefault": false,
2022-07-14 15:17:09 +02:00
"mapRendering": [
{
"icon": "./assets/themes/onwheels/hospital.svg",
"iconSize": "40,40,bottom"
},
{
"color": "#dd463b"
}
]
}
},
{
"builtin": "reception_desk",
"override": {
"minzoom": 19,
2022-07-27 17:35:22 +02:00
"syncSelection": "theme-only"
2022-07-14 15:17:09 +02:00
}
},
2022-07-19 12:26:53 +02:00
"walls_and_buildings",
{
"builtin": "elevator",
"override": {
"minzoom": 19,
2022-07-26 12:05:02 +02:00
"syncSelection": "theme-only",
"mapRendering": [
{
2022-07-27 17:35:22 +02:00
"icon": "circle:white;./assets/themes/onwheels/elevator.svg",
"iconSize": "40,40,bottom"
}
]
}
},
2022-07-25 10:15:50 +02:00
{
"builtin": "hotel",
"override": {
"minzoom": 15,
2022-07-26 16:51:00 +02:00
"shownByDefault": false,
2022-07-25 10:15:50 +02:00
"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()}"
}
]
}
},
2022-07-14 15:17:09 +02:00
{
"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",
2022-07-19 12:06:26 +02:00
"render": {
"special": {
"type": "import_button",
"targetLayer": "hotel",
"tags": "tags",
"text": {
"en": "Import"
},
"icon": "./assets/svg/addSmall.svg",
"location_picker": "photo",
"maproulette_id": "mr_taskId"
}
}
},
{
"id": "tag-apply-button",
"condition": "_has_closeby_feature=yes",
2022-07-19 12:06:26 +02:00
"render": {
"special": {
"type": "tag_apply",
"tags_to_apply": "$tags",
"message": {
"en": "Add all the suggested tags"
},
"image": "./assets/svg/addSmall.svg",
"id_of_object_to_apply_this_one": "_closest_osm_hotel"
}
}
}
2022-07-14 15:17:09 +02:00
]
}
}
],
2022-07-13 10:03:09 +02:00
"overrideAll": {
"+calculatedTags": [
2022-07-28 09:16:19 +02:00
"_poi_walls_and_buildings_entrance_properties=[].concat(...feat.closestn('walls_and_buildings',1, undefined, 500).map(w => ({id: w.feat.properties.id, width: w.feat.properties['_entrance_properties']})))",
"_poi_walls_and_buildings_entrance_count=[].concat(...feat.overlapWith('walls_and_buildings').map(w => ({id: w.feat.properties.id, width: w.feat.properties['_entrance_properties']})))",
"_poi_walls_and_buildings_entrance_properties_with_width=feat.get('_poi_walls_and_buildings_entrance_properties').filter(p => p['width'] !== undefined)",
"_poi_entrance:id=JSON.parse(feat.properties._poi_walls_and_buildings_entrance_properteis)?.id",
"_poi_entrance:width=JSON.parse(feat.properties._poi_walls_and_buildings_entrance_properties)?.width"
],
"+tagRenderings": [
{
2022-07-26 12:05:02 +02:00
"id": "_containing_poi_entrance:width",
2022-07-19 11:53:16 +02:00
"condition": {
"and": [
"entrance=",
"kerb=",
2022-07-26 16:51:00 +02:00
"current_view!=yes",
"door="
2022-07-19 11:53:16 +02:00
]
},
2022-07-28 09:16:19 +02:00
"mappings": [{
"if": "_poi_walls_and_buildings_entrance_properties_with_width=[]",
"then": {
"en": "The containing building has {}"
}
}],
"render": {
2022-07-28 09:16:19 +02:00
"special": {
"type": "multi",
"key": "_poi_walls_and_buildings_entrance_properties",
"tagrendering": {
"en": "The containing building can be entered via <a href='#{_poi_entrance:id}'>a door of {canonical(_poi_entrance:width)}</a>",
"fr": "On peut entrer dans ce batiment via <a href='#{_poi_entrance:id}'>une porte de {canonical(_poi_entrance:width)}</a>",
"de": "Das Gebäude kann über <a href='#{_poi_entrance:id}'>durch eine Tür von {canonical(_poi_entrance:width)} betreten werden.</a>"
}
}
}
}
]
}
}