Layer reformatting/translation generation

This commit is contained in:
Pieter Vander Vennet 2021-12-05 21:02:55 +01:00
parent 7757e898ba
commit 3cada0b678
9 changed files with 167 additions and 15 deletions

View file

@ -127,7 +127,6 @@
"iconSize": "50,50,center",
"icon": {
"render": "./assets/layers/address/housenumber_blank.svg",
"mappings": [
{
"if": {
@ -146,7 +145,8 @@
]
},
"location": [
"point","centroid"
"point",
"centroid"
]
},
{

View file

@ -215,7 +215,8 @@
"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"
@ -235,7 +236,7 @@
"en": "This door has a width of {canonical(width)} meter"
},
"question": {
"en":"What is the width of this door/entrance?"
"en": "What is the width of this door/entrance?"
},
"freeform": {
"key": "width",
@ -267,7 +268,9 @@
"preferredBackground": "photo",
"snapToLayer": "walls_and_buildings"
},
"tags": ["entrance=yes"]
"tags": [
"entrance=yes"
]
}
]
}

View file

@ -80,6 +80,6 @@
],
"description": {
"en": "A layer showing touristical, road side information boards (e.g. giving information about the landscape, a building, a feature, a map, ...)",
"nl":"Deze laag toont informatieborden in de publieke ruimte die uitleg geven over een bezienswaardigheid (bv. uitleg over het landschap, een ruine, een kaart van de omgeving, ...)"
"nl": "Deze laag toont informatieborden in de publieke ruimte die uitleg geven over een bezienswaardigheid (bv. uitleg over het landschap, een ruine, een kaart van de omgeving, ...)"
}
}

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>{histogram(_length_hist)}",
"de": "<h3>Längenübersicht</h3>{histogramm(_length_hist)}",
"it": "<h3>Riassunto della lunghezza</h3>{histogram(_length_hist)}"
},
"condition": "_length_hist!~\\[\\]",

View file

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

View file

@ -51,7 +51,6 @@
"passAllFeatures": true
}
},
{
"id": "OSM-buildings",
"name": "All OSM-buildings",
@ -291,7 +290,7 @@
],
"#": "Pass all the features in order to render the address in the layer below",
"passAllFeatures": true
},
},
"address",
{
"id": "All OSM objects",

View file

@ -238,6 +238,7 @@
}
},
"bench": {
"description": "A bench is a wooden, metal, stone, ... surface where a human can sit. This layers visualises them and asks a few questions about them.",
"name": "Benches",
"presets": {
"0": {
@ -328,6 +329,7 @@
}
},
"bench_at_pt": {
"description": "A layer showing all public-transport-stops which do have a bench",
"name": "Benches at public transport stops",
"tagRenderings": {
"bench_at_pt-bench_type": {
@ -406,6 +408,7 @@
}
},
"bicycle_tube_vending_machine": {
"description": "A layer showing vending machines for bicycle tubes (either purpose-built bicycle tube vending machines or classical vending machines with bicycle tubes and optionally additional bicycle related objects such as lights, gloves, locks, ...)",
"name": "Bicycle tube vending machine",
"presets": {
"0": {
@ -434,6 +437,7 @@
}
},
"bike_cafe": {
"description": "A bike café is a café geared towards cyclists, for example with services such as a pump, with lots of bicycle-related decoration, ...",
"name": "Bike cafe",
"presets": {
"0": {
@ -501,6 +505,7 @@
}
},
"bike_cleaning": {
"description": "A layer showing facilities where one can clean their bike",
"name": "Bike cleaning service",
"presets": {
"0": {
@ -549,6 +554,7 @@
}
},
"bike_parking": {
"description": "A layer showing where you can park your bike",
"name": "Bike parking",
"presets": {
"0": {
@ -660,6 +666,7 @@
}
},
"bike_repair_station": {
"description": "A layer showing bicycle pumps and bicycle repair tool stands",
"name": "Bike stations (repair, pump or both)",
"presets": {
"0": {
@ -951,6 +958,7 @@
}
},
"bike_themed_object": {
"description": "A layer with bike-themed objects but who don't match any other layer",
"name": "Bike related object",
"title": {
"mappings": {
@ -1001,6 +1009,7 @@
}
},
"cafe_pub": {
"description": "A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions",
"filter": {
"0": {
"options": {
@ -2168,6 +2177,7 @@
}
},
"cycleways_and_roads": {
"description": "All infrastructure that someone can cycle over, accompanied with questions about this infrastructure\"",
"name": "Cycleways and roads",
"tagRenderings": {
"Cycleway type for a road": {
@ -2550,6 +2560,7 @@
}
},
"defibrillator": {
"description": "A layer showing defibrillators which can be used in case of emergency. This contains public defibrillators, but also defibrillators which might need staff to fetch the actual device",
"name": "Defibrillators",
"presets": {
"0": {
@ -2681,6 +2692,7 @@
"name": "Direction visualization"
},
"drinking_water": {
"description": "A layer showing drinking water fountains",
"name": "Drinking water",
"presets": {
"0": {
@ -2722,6 +2734,102 @@
"render": "Drinking water"
}
},
"entrance": {
"description": "A layer showing entrances and offering capabilities to survey some advanced data which is important for e.g. wheelchair users (but also bicycle users, people who want to deliver, ...)",
"name": "Entrance",
"tagRenderings": {
"Door_type": {
"mappings": {
"0": {
"then": "The door type is not known"
},
"1": {
"then": "A classical, hinged door supported by joints"
},
"2": {
"then": "A revolving door which hangs on a central shaft, rotating within a cylindrical enclosure"
},
"3": {
"then": "A door which rolls from overhead, typically seen for garages"
},
"4": {
"then": "This is an entrance without a physical door"
}
},
"question": "What is the type of this door?<br/><span class='subtle'>Wether or not the door is automated is asked in the next question</span>"
},
"Entrance type": {
"mappings": {
"0": {
"then": "No specific entrance type is known"
},
"1": {
"then": "This is an indoor door, separating a room or a corridor within a single building"
},
"2": {
"then": "This is the main entrance"
},
"3": {
"then": "This is a secondary entrance"
},
"4": {
"then": "This is a service entrance - normally only used for employees, delivery, ..."
},
"5": {
"then": "This is an exit where one can not enter"
},
"6": {
"then": "This is an entrance where one can only enter (but not exit)"
},
"7": {
"then": "This is emergency exit"
},
"8": {
"then": "This is the entrance to a private home"
}
},
"question": "What type of entrance is this?"
},
"automatic_door": {
"mappings": {
"0": {
"then": "This is an automatic door"
},
"1": {
"then": "This door is <b>not</b> automated"
},
"2": {
"then": "This door will open automatically when <b>motion</b> is detected"
},
"3": {
"then": "This door will open automatically when a <b>sensor in the floor</b> is triggered"
},
"4": {
"then": "This door will open automatically when a <b>button is pressed</b>"
},
"5": {
"then": "This door revolves automatically all the time, but has a <b>button to slow it down</b>, e.g. for wheelchair users"
},
"6": {
"then": "This door revolves automatically all the time"
},
"7": {
"then": "This door will be opened by staff when requested by <b>pressing a button</b"
},
"8": {
"then": "This door will be opened by staff when requested"
}
}
},
"width": {
"question": "What is the width of this door/entrance?",
"render": "This door has a width of {canonical(width)} meter"
}
},
"title": {
"render": "Entrance"
}
},
"etymology": {
"description": "All objects which have an etymology known",
"name": "Has etymolgy",
@ -2835,6 +2943,7 @@
}
},
"food": {
"description": "A layer showing restaurants and fast-food amenities (with a special rendering for friteries)",
"filter": {
"0": {
"options": {
@ -2963,6 +3072,7 @@
}
},
"ghost_bike": {
"description": "A layer showing memorials for cyclists, killed in road accidents",
"name": "Ghost bikes",
"presets": {
"0": {
@ -3011,6 +3121,9 @@
}
}
},
"grass_in_parks": {
"description": "Searches for all accessible grass patches within public parks - these are 'groenzones'\""
},
"hydrant": {
"description": "Map layer to show fire hydrants.",
"name": "Map of hydrants",
@ -3077,6 +3190,7 @@
}
},
"information_board": {
"description": "A layer showing touristical, road side information boards (e.g. giving information about the landscape, a building, a feature, a map, ...)",
"name": "Information boards",
"presets": {
"0": {
@ -3569,6 +3683,7 @@
}
},
"slow_roads": {
"description": "All carfree roads",
"tagRenderings": {
"slow_roads-surface": {
"mappings": {
@ -3712,6 +3827,7 @@
}
},
"street_lamps": {
"description": "A layer showing street lights",
"name": "Street Lamps",
"presets": {
"0": {
@ -3860,6 +3976,7 @@
}
},
"surveillance_camera": {
"description": "This layer shows surveillance cameras and allows a contributor to update information and add new cameras",
"name": "Surveillance camera's",
"presets": {
"0": {
@ -3974,6 +4091,7 @@
}
},
"toilet": {
"description": "A layer showing (public) toilets",
"filter": {
"0": {
"options": {
@ -4171,6 +4289,7 @@
}
},
"tree_node": {
"description": "A layer showing trees",
"name": "Tree",
"presets": {
"0": {
@ -4313,6 +4432,9 @@
"render": "Viewpoint"
}
},
"village_green": {
"description": "A layer showing village-green (which are communal green areas, but not quite parks\""
},
"visitor_information_centre": {
"description": "A visitor center offers information about a specific attraction or place of interest where it is located.",
"name": "Visitor Information Centre",

View file

@ -176,6 +176,7 @@
}
},
"bench": {
"description": "Deze laag toont zitbanken en enkele vragen over deze zitbanken",
"name": "Zitbanken",
"presets": {
"0": {
@ -2674,6 +2675,7 @@
"name": "Richtingsvisualisatie"
},
"drinking_water": {
"description": "Deze laag toont drinkwaterpunten",
"name": "Drinkbaar water",
"presets": {
"0": {
@ -2715,6 +2717,23 @@
"render": "Drinkbaar water"
}
},
"entrance": {
"tagRenderings": {
"Door_type": {
"mappings": {
"1": {
"then": "Een gewone deur die aan scharnieren ophangt en openzwaait"
},
"2": {
"then": "Een tourniquet-deur (draaideur) die in een cylinder rond een centrale as draait"
},
"3": {
"then": "Een poort die langs boven dichtrolt, typisch voor garages"
}
}
}
}
},
"etymology": {
"description": "Alle lagen met een gelinkt etymology",
"name": "Heeft etymology info",
@ -3045,6 +3064,7 @@
}
},
"information_board": {
"description": "Deze laag toont informatieborden in de publieke ruimte die uitleg geven over een bezienswaardigheid (bv. uitleg over het landschap, een ruine, een kaart van de omgeving, ...)",
"name": "Informatieborden",
"presets": {
"0": {
@ -4080,6 +4100,7 @@
}
},
"toilet": {
"description": "Een laag die publieke toiletten toont",
"filter": {
"0": {
"options": {

View file

@ -711,6 +711,11 @@
"description": "On this map, publicly accessible drinking water spots are shown and can be easily added",
"title": "Drinking Water"
},
"entrances": {
"description": "A map showing all entrances, which surveys for important aspects for wheelchair users",
"shortDescription": "Survey entrances to help wheelchair routing",
"title": "Entrances"
},
"etymology": {
"description": "On this map, you can see what an object is named after. The streets, buildings, ... come from OpenStreetMap which got linked with Wikidata. In the popup, you'll see the Wikipedia article (if it exists) or a wikidata box of what the object is named after. If the object itself has a wikipedia page, that'll be shown too.<br/><br/><b>You can help contribute too!</b>Zoom in enough and <i>all</i> streets will show up. You can click one and a Wikidata-search box will popup. With a few clicks, you can add an etymology link. Note that you need a free OpenStreetMap account to do this.",
"layers": {