Further improvements to entrances theme, add layer-crossdependency detection, add layers which another layer depends on automatically to the theme, add documentation on which layers depends on which other layers, regenerate documentation

This commit is contained in:
Pieter Vander Vennet 2021-12-05 02:06:14 +01:00
parent 8e40d76281
commit 0ee23ce36d
27 changed files with 9032 additions and 331 deletions

View file

@ -21,6 +21,7 @@
}
},
"tagRenderings": [
"images",
{
"id": "Entrance type",
"question": {
@ -167,6 +168,67 @@
}
]
},
{
"id": "automatic_door",
"question": "Is this door automated?",
"condition": "door!=no",
"mappings": [
{
"if": "automatic_door=yes",
"then": {
"en": "This is an automatic door"
},
"hideInAnswer": true
},
{
"if": "automatic_door=no",
"then": {
"en": "This door is <b>not</b> automated"
}
},
{
"if": "automatic_door=motion",
"then": {
"en": "This door will open automatically when <b>motion</b> is detected"
}
},
{
"if": "automatic_door=floor",
"then": {
"en": "This door will open automatically when a <b>sensor in the floor</b> is triggered"
}
},
{
"if": "automatic_door=button",
"then": {
"en": "This door will open automatically when a <b>button is pressed</b>"
}
},
{
"if": "automatic_door=slowdown_button",
"then": {
"en": "This door revolves automatically all the time, but has a <b>button to slow it down</b>, e.g. for wheelchair users"
}
},
{
"if": "automatic_door=continuous",
"then": {
"en": "This door revolves automatically all the time"
}
},{
"if": "automatic_door=serviced_on_button_press",
"then": {
"en": "This door will be opened by staff when requested by <b>pressing a button</b"
}
},
{
"if": "automatic_door=serviced_on_request",
"then": {
"en": "This door will be opened by staff when requested"
}
}
]
},
{
"id": "width",
"render": {
@ -188,11 +250,11 @@
"centroid"
],
"icon": {
"render": "./assets/layers/entrance/door.svg",
"render": "circle:white;./assets/layers/entrance/door.svg",
"mappings": [
{
"if": "entrance=emergency",
"then": "./assets/layers/entrance/emergency_door.svg"
"then": "circle:white;./assets/layers/entrance/emergency_door.svg"
}
]
}

View file

@ -20,13 +20,22 @@
"passAllFeatures": true,
"shownByDefault": false,
"mapRendering": [
{
"color": {
"render": "#fff"
},
"fill": "no",
"width": {
"render": "3"
}
},
{
"color": {
"render": "#333"
},
"fill": "no",
"width": {
"render": "5"
"render": "2"
}
}
]

View file

@ -60,7 +60,6 @@
"startLon": 0,
"startZoom": 12,
"layers": [
"walls_and_buildings",
"defibrillator"
]
}

View file

@ -16,7 +16,6 @@
"startLon": 3.195682,
"startZoom": 12,
"layers": [
"walls_and_buildings",
"defibrillator",
{
"id": "Brugge",

View file

@ -692,7 +692,7 @@
"render": {
"en": "<h3>Length overview</h3>{histogram(_length_hist)}",
"fr": "<h3>Résumé de longueur</h3>{histogram(_length_hist)}",
"de": "<h3>Längenübersicht</h3>{histogramm(_length_hist)}",
"de": "<h3>Längenübersicht</h3>{histogram(_length_hist)}",
"it": "<h3>Riassunto della lunghezza</h3>{histogram(_length_hist)}"
},
"condition": "_length_hist!~\\[\\]",

View file

@ -0,0 +1,22 @@
{
"id": "entrances",
"title": {
"en":"Entrances"
},
"icon": "./assets/layers/entrance/door.svg",
"description": {
"en":"A map showing all entrances, which surveys for important aspects for wheelchair users"
},
"shortDescription": {"en":
"Survey entrances to help wheelchair routing"
},
"language": ["en"],
"version": "2021-12-04",
"maintainer": "MapComplete",
"layers": [
"entrance"
],
"startZoom": 15,
"startLat": 51.0490,
"startLon": 3.7297
}

View file

@ -49,7 +49,6 @@
"socialImage": "",
"defaultBackgroundId": "osm",
"layers": [
"walls_and_buildings",
"direction",
"surveillance_camera"
]