diff --git a/assets/layers/elevator/elevator.json b/assets/layers/elevator/elevator.json index c63252b0e..8db1b6810 100644 --- a/assets/layers/elevator/elevator.json +++ b/assets/layers/elevator/elevator.json @@ -17,10 +17,12 @@ "nl": "Deze laag toont liften en vraagt praktische info over de grootte van de lift en ofdat deze werkt, vooral met het oog op of de lift werkt of niet." }, "title": { - "en": "Elevator", - "fr": "Ascenseur", - "de": "Aufzug", - "nl": "Lift" + "render": { + "en": "Elevator", + "fr": "Ascenseur", + "de": "Aufzug", + "nl": "Lift" + } }, "tagRenderings": [ "images", @@ -139,7 +141,7 @@ "icon": { "render": "circle:white;./assets/layers/elevator/elevator_wheelchair.svg" }, - "iconSize": "40,40,bottom", + "iconSize": "40,40,center", "location": [ "point", "centroid" diff --git a/assets/layers/hackerspace/hackerspace.json b/assets/layers/hackerspace/hackerspace.json index 921e43f4c..c88e32744 100644 --- a/assets/layers/hackerspace/hackerspace.json +++ b/assets/layers/hackerspace/hackerspace.json @@ -50,6 +50,7 @@ "nl": "Hackerspace" }, "tagRenderings": [ + "images", { "id": "is_makerspace", "question": { @@ -374,4 +375,4 @@ } } ] -} \ No newline at end of file +} diff --git a/assets/layers/indoors/indoors.json b/assets/layers/indoors/indoors.json index 6a21c11d7..9b00ee226 100644 --- a/assets/layers/indoors/indoors.json +++ b/assets/layers/indoors/indoors.json @@ -30,27 +30,39 @@ "mappings": [ { "if": "indoor=room", - "then": "Indoor Room {name}" + "then": { + "en": "Indoor Room {name}" + } }, { "if": "indoor=area", - "then": "Indoor Area {name}" + "then": { + "en": "Indoor Area {name}" + } }, { "if": "indoor=wall", - "then": "Indoor Wall {name}" + "then": { + "en": "Indoor Wall {name}" + } }, { "if": "indoor=corridor", - "then": "Indoor Corridor {name}" + "then": { + "en": "Indoor Corridor {name}" + } }, { "if": "indoor=door", - "then": "Indoor Door {name}" + "then": { + "en": "Indoor Door {name}" + } }, { "if": "indoor=level", - "then": "Indoor Level {name}" + "then": { + "en": "Indoor Level {name}" + } } ] }, @@ -59,6 +71,29 @@ "images", { "id": "ref", + "question": { + "en": "What is the reference number of this room?" + }, + "render": { + "en": "This room has the reference number {ref}" + }, + "freeform": { + "key": "ref", + "type": "string", + "placeholder": { + "en": "Reference number of the room (e.g. '1.1' or 'A1')" + } + }, + "condition": { + "or": [ + "indoor=room", + "indoor=area", + "indoor=corridor" + ] + } + }, + { + "id": "name", "question": { "en": "What is the name of this room?", "de": "Wie lautet der Name dieses Raums?" @@ -68,7 +103,18 @@ "de": "Der Name des Raums lautet {name}" }, "freeform": { - "key": "name" + "key": "name", + "type": "string", + "placeholder": { + "en": "Name of the room" + } + }, + "condition": { + "or": [ + "indoor=room", + "indoor=area", + "indoor=corridor" + ] } } ], @@ -93,12 +139,84 @@ { "label": { "render": "
{name}
", - "condition": "name~*" + "condition": "name~*", + "mappings": [ + { + "if": { + "or": [ + "room=administration", + "room=auditorium", + "room=bedroom", + "room=chapel", + "room=class", + "room=computer", + "room=conference", + "room=crypt", + "room=kitchen", + "room=laboratory", + "room=library", + "room=locker", + "room=nursery", + "room=office", + "room=prison_cell", + "room=restaurant", + "room=security_check", + "room=sport", + "room=storage", + "room=technical", + "room=toilet", + "room=toilets", + "room=waiting" + ] + }, + "then": "
{name}
" + } + ] }, "location": [ "point", "centroid" - ] + ], + "icon": { + "render": null, + "condition": "indoor=room", + "mappings": [ + { + "if": { + "or": [ + "room=adminstration", + "room=auditorium", + "room=bedroom", + "room=chapel", + "room=class", + "room=computer", + "room=conference", + "room=crypt", + "room=kitchen", + "room=laboratory", + "room=library", + "room=locker", + "room=nursery", + "room=office", + "room=prison_cell", + "room=restaurant", + "room=security_check", + "room=sport", + "room=storage", + "room=technical", + "room=toilets", + "room=waiting" + ] + }, + "then": "./assets/layers/indoors/room_{room}.svg" + }, + { + "if": "room=toilet", + "then": "./assets/layers/indoors/room_toilets.svg" + } + ] + }, + "iconSize": "15,15, bottom" } ] } \ No newline at end of file diff --git a/assets/layers/indoors/license_info.json b/assets/layers/indoors/license_info.json new file mode 100644 index 000000000..858f28f2e --- /dev/null +++ b/assets/layers/indoors/license_info.json @@ -0,0 +1,222 @@ +[ + { + "path": "room_administration.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_administration.svg" + ] + }, + { + "path": "room_auditorium.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_auditorium.svg" + ] + }, + { + "path": "room_bedroom.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_bedroom.svg" + ] + }, + { + "path": "room_chapel.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_chapel.svg" + ] + }, + { + "path": "room_class.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_class.svg" + ] + }, + { + "path": "room_computer.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_computer.svg" + ] + }, + { + "path": "room_conference.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_conference.svg" + ] + }, + { + "path": "room_crypt.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_crypt.svg" + ] + }, + { + "path": "room_kitchen.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_kitchen.svg" + ] + }, + { + "path": "room_laboratory.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_laboratory.svg" + ] + }, + { + "path": "room_library.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_library.svg" + ] + }, + { + "path": "room_locker.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_locker.svg" + ] + }, + { + "path": "room_nursery.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_nursery.svg" + ] + }, + { + "path": "room_office.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_office.svg" + ] + }, + { + "path": "room_prison_cell.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_prison_cell.svg" + ] + }, + { + "path": "room_restaurant.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_restaurant.svg" + ] + }, + { + "path": "room_security_check.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_security_check.svg" + ] + }, + { + "path": "room_sport.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_sport.svg" + ] + }, + { + "path": "room_storage.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_storage.svg" + ] + }, + { + "path": "room_technical.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_technical.svg" + ] + }, + { + "path": "room_toilets.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_toilets.svg" + ] + }, + { + "path": "room_waiting.svg", + "license": "GNU", + "authors": [ + "Adrien Pavie" + ], + "sources": [ + "https://framagit.org/OpenLevelUp/OpenLevelUp/-/blob/master/src/img/features-vector/room_waiting.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/indoors/room_administration.svg b/assets/layers/indoors/room_administration.svg new file mode 100644 index 000000000..3bc7f7bba --- /dev/null +++ b/assets/layers/indoors/room_administration.svg @@ -0,0 +1,55 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/assets/layers/indoors/room_auditorium.svg b/assets/layers/indoors/room_auditorium.svg new file mode 100644 index 000000000..7c0853943 --- /dev/null +++ b/assets/layers/indoors/room_auditorium.svg @@ -0,0 +1,137 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_bedroom.svg b/assets/layers/indoors/room_bedroom.svg new file mode 100644 index 000000000..183cd8666 --- /dev/null +++ b/assets/layers/indoors/room_bedroom.svg @@ -0,0 +1,175 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_chapel.svg b/assets/layers/indoors/room_chapel.svg new file mode 100644 index 000000000..1dc57c010 --- /dev/null +++ b/assets/layers/indoors/room_chapel.svg @@ -0,0 +1,185 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_class.svg b/assets/layers/indoors/room_class.svg new file mode 100644 index 000000000..ea194e66d --- /dev/null +++ b/assets/layers/indoors/room_class.svg @@ -0,0 +1,115 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_computer.svg b/assets/layers/indoors/room_computer.svg new file mode 100644 index 000000000..c5637733f --- /dev/null +++ b/assets/layers/indoors/room_computer.svg @@ -0,0 +1,55 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/assets/layers/indoors/room_conference.svg b/assets/layers/indoors/room_conference.svg new file mode 100644 index 000000000..5ee49fb50 --- /dev/null +++ b/assets/layers/indoors/room_conference.svg @@ -0,0 +1,118 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_crypt.svg b/assets/layers/indoors/room_crypt.svg new file mode 100644 index 000000000..eae7a7ed1 --- /dev/null +++ b/assets/layers/indoors/room_crypt.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_kitchen.svg b/assets/layers/indoors/room_kitchen.svg new file mode 100644 index 000000000..fc666fc94 --- /dev/null +++ b/assets/layers/indoors/room_kitchen.svg @@ -0,0 +1,113 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_laboratory.svg b/assets/layers/indoors/room_laboratory.svg new file mode 100644 index 000000000..04c740fe7 --- /dev/null +++ b/assets/layers/indoors/room_laboratory.svg @@ -0,0 +1,78 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/assets/layers/indoors/room_library.svg b/assets/layers/indoors/room_library.svg new file mode 100644 index 000000000..31ae21fff --- /dev/null +++ b/assets/layers/indoors/room_library.svg @@ -0,0 +1,115 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_locker.svg b/assets/layers/indoors/room_locker.svg new file mode 100644 index 000000000..6826a50c0 --- /dev/null +++ b/assets/layers/indoors/room_locker.svg @@ -0,0 +1,74 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_nursery.svg b/assets/layers/indoors/room_nursery.svg new file mode 100644 index 000000000..549839df0 --- /dev/null +++ b/assets/layers/indoors/room_nursery.svg @@ -0,0 +1,155 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_office.svg b/assets/layers/indoors/room_office.svg new file mode 100644 index 000000000..4e49e97f4 --- /dev/null +++ b/assets/layers/indoors/room_office.svg @@ -0,0 +1,117 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_prison_cell.svg b/assets/layers/indoors/room_prison_cell.svg new file mode 100644 index 000000000..3fd3d2116 --- /dev/null +++ b/assets/layers/indoors/room_prison_cell.svg @@ -0,0 +1,124 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_restaurant.svg b/assets/layers/indoors/room_restaurant.svg new file mode 100644 index 000000000..97b43c91a --- /dev/null +++ b/assets/layers/indoors/room_restaurant.svg @@ -0,0 +1,71 @@ + + + + + + + + + image/svg+xml + + + en + + + + + image/svg+xml + + + + + + + + diff --git a/assets/layers/indoors/room_security_check.svg b/assets/layers/indoors/room_security_check.svg new file mode 100644 index 000000000..2cc0a3e05 --- /dev/null +++ b/assets/layers/indoors/room_security_check.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/assets/layers/indoors/room_sport.svg b/assets/layers/indoors/room_sport.svg new file mode 100644 index 000000000..5a5949fe3 --- /dev/null +++ b/assets/layers/indoors/room_sport.svg @@ -0,0 +1,111 @@ + + + + + + + + + image/svg+xml + + + en + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_storage.svg b/assets/layers/indoors/room_storage.svg new file mode 100644 index 000000000..2c6c28308 --- /dev/null +++ b/assets/layers/indoors/room_storage.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_technical.svg b/assets/layers/indoors/room_technical.svg new file mode 100644 index 000000000..b058c935c --- /dev/null +++ b/assets/layers/indoors/room_technical.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/assets/layers/indoors/room_toilets.svg b/assets/layers/indoors/room_toilets.svg new file mode 100644 index 000000000..e41fc9954 --- /dev/null +++ b/assets/layers/indoors/room_toilets.svg @@ -0,0 +1,132 @@ + + + + + + + + image/svg+xml + + + en + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/indoors/room_waiting.svg b/assets/layers/indoors/room_waiting.svg new file mode 100644 index 000000000..e3aacd19e --- /dev/null +++ b/assets/layers/indoors/room_waiting.svg @@ -0,0 +1,108 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/assets/themes/indoors/crest.svg b/assets/themes/indoors/crest.svg deleted file mode 100644 index 383b543b1..000000000 --- a/assets/themes/indoors/crest.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/assets/themes/indoors/indoors.json b/assets/themes/indoors/indoors.json index ba3b93137..2b31cd0ad 100644 --- a/assets/themes/indoors/indoors.json +++ b/assets/themes/indoors/indoors.json @@ -19,7 +19,12 @@ "startZoom": 14, "widenFactor": 2, "layers": [ - "indoors", + { + "builtin": "indoors", + "override": { + "passAllFeatures": true + } + }, { "builtin": [ "walls_and_buildings" @@ -29,6 +34,7 @@ } }, "pedestrian_path", + "elevator", "entrance" ] } \ No newline at end of file diff --git a/assets/themes/indoors/license_info.json b/assets/themes/indoors/license_info.json deleted file mode 100644 index 9f2dcf81a..000000000 --- a/assets/themes/indoors/license_info.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "path": "crest.svg", - "license": "CC0", - "authors": [ - "Free Wheelies" - ], - "sources": [] - } -] \ No newline at end of file diff --git a/langs/layers/de.json b/langs/layers/de.json index bad87f983..415e6729e 100644 --- a/langs/layers/de.json +++ b/langs/layers/de.json @@ -3438,7 +3438,9 @@ "question": "Ist dieser Aufzug in Betrieb?" } }, - "title": "Aufzug", + "title": { + "render": "Aufzug" + }, "units": { "0": { "applicableUnits": { diff --git a/langs/layers/en.json b/langs/layers/en.json index cb3716588..50e29227e 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -3438,7 +3438,9 @@ "question": "Does this elevator work?" } }, - "title": "Elevator", + "title": { + "render": "Elevator" + }, "units": { "0": { "applicableUnits": { @@ -4213,6 +4215,38 @@ "question": "What color is the hydrant?", "render": "The hydrant color is {colour}" }, + "hydrant-couplings": { + "freeform": { + "placeholder": "Coupling type" + }, + "mappings": { + "0": { + "then": "Storz coupling" + }, + "1": { + "then": "UNI coupling" + }, + "2": { + "then": "Barcelona coupling" + } + }, + "question": "What kind of couplings does this hydrant have?", + "render": "Couplings: {couplings:type}" + }, + "hydrant-couplings-diameters": { + "freeform": { + "placeholder": "Coupling diameters" + }, + "question": "What diameter are the couplings of this hydrant?", + "render": "Coupling diameters: {couplings:diameters}" + }, + "hydrant-diameter": { + "freeform": { + "placeholder": "Pipe diameter" + }, + "question": "What is the pipe diameter of this hydrant?", + "render": "Pipe diameter: {canonical(fire_hydrant:diameter)}" + }, "hydrant-state": { "mappings": { "0": { @@ -4251,18 +4285,58 @@ }, "title": { "render": "Hydrant" + }, + "units": { + "0": { + "applicableUnits": { + "0": { + "human": "millimeters", + "humanSingular": "millimeter" + } + } + } } }, "indoors": { "description": "Basic indoor mapping: shows room outlines", "name": "indoors", "tagRenderings": { - "ref": { + "name": { + "freeform": { + "placeholder": "Name of the room" + }, "question": "What is the name of this room?", "render": "This room is named {name}" + }, + "ref": { + "freeform": { + "placeholder": "Reference number of the room (e.g. '1.1' or 'A1')" + }, + "question": "What is the reference number of this room?", + "render": "This room has the reference number {ref}" } }, "title": { + "mappings": { + "0": { + "then": "Indoor Room {name}" + }, + "1": { + "then": "Indoor Area {name}" + }, + "2": { + "then": "Indoor Wall {name}" + }, + "3": { + "then": "Indoor Corridor {name}" + }, + "4": { + "then": "Indoor Door {name}" + }, + "5": { + "then": "Indoor Level {name}" + } + }, "render": "Indoor area {name}" } }, diff --git a/langs/layers/fr.json b/langs/layers/fr.json index 9416f2378..78753c279 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -2293,7 +2293,9 @@ "question": "Cet ascenseur fonctionne-t-il ?" } }, - "title": "Ascenseur", + "title": { + "render": "Ascenseur" + }, "units": { "0": { "applicableUnits": { diff --git a/langs/layers/nl.json b/langs/layers/nl.json index 5e0a2b62b..df5ba4b81 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -3384,7 +3384,9 @@ "question": "Werkt deze lift?" } }, - "title": "Lift", + "title": { + "render": "Lift" + }, "units": { "0": { "applicableUnits": { @@ -4203,6 +4205,16 @@ }, "title": { "render": "Brandkraan" + }, + "units": { + "0": { + "applicableUnits": { + "0": { + "human": "millimeter", + "humanSingular": "millimeter" + } + } + } } }, "indoors": {