Add summary layer

This commit is contained in:
Pieter Vander Vennet 2024-02-15 17:39:59 +01:00
parent 5b318236bf
commit 74fb4bd5d1
19 changed files with 533 additions and 88 deletions

View file

@ -4,6 +4,7 @@
"en": "Ice cream parlors",
"de": "Eisdielen"
},
"minzoom": 14,
"description": {
"en": "A place where ice cream is sold over the counter",
"de": "Ein Ort, an dem Eiscreme an der Theke verkauft wird"

View file

@ -1,7 +1,7 @@
{
"id": "last_click",
"name": null,
"description": "This layer defines how to render the 'last click'-location. By default, it will show a marker with the possibility to add a new point (if there are some presets) and/or to add a new note (if the 'note' layer attribute is set). If none are possible, this layer won't show up",
"description": "This 'layer' is not really a layer, but contains part of the code how the popup to 'add a new marker' is displayed",
"source": "special",
"isShown": {
"or": [

View file

@ -0,0 +1,25 @@
{
"id": "summary",
"description": "Special layer which shows `count`",
"source": "special",
"name": "CLusters",
"title": {
"render": {"en": "Summary"}
},
"tagRenderings": [
"all_tags"
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"iconSize": "25,25",
"label": {
"render": "{total}"
},
"labelCssClasses": "bg-white w-6 h-6 text-lg rounded-full"
}
]
}

View file

@ -26,7 +26,7 @@
"source": {
"osmTags": "amenity=toilets"
},
"minzoom": 9,
"minzoom": 10,
"title": {
"render": {
"en": "Toilet",
@ -548,6 +548,115 @@
}
]
},
{
"condition": "toilets:position!=urinal",
"id": "gender_segregated",
"question": {
"en": "Are these toilets gender-segregated?",
"nl": "Zijn deze toiletten gescheiden op basis van geslacht?"
},
"questionHint": {
"en": "Are there separate stalls or separate areas for men and women and are they signposted as such?",
"nl": "Is er een aparte ruimte voor mannen en vrouwen en zijn deze ruimtes ook expliciet aangegeven?"
},
"mappings": [
{
"if": "gender_segregated=yes",
"then": {
"en": "There is a separate, signposted area for men and women",
"nl": "Er zijn aparte ruimtes of toiletten voor mannen en vrouwen"
}
},
{
"if": "gender_segregated=no",
"then": {
"en": "There is no separate, signposted area for men and women",
"nl": "Mannen en vrouwen gebruiken dezelfde ruimtes en toiletten"
}
}
]
},
{
"id": "menstrual_products",
"question": {
"en": "Are free, menstrual products distributed here?",
"nl": "Zijn er gratis menstruatieproducten beschikbaar?"
},
"questionHint": {
"en": "This is only about menstrual products that are free of charge. If e.g. a vending machine is available which charges for menstrual products, ignore it for this question.",
"nl": "Dit gaat enkel over menstruatieproducten die gratis geschikbaar zijn. Indien er bv. een verkoopautomaat met menstruatieproducten is, negeer deze dan"
},
"mappings": [
{
"if": "toilets:menstrual_products=yes",
"then": {
"en": "Free menstrual products are available to all visitors of these toilets",
"nl": "Er zijn gratis menstruatieprocten beschikbaar voor alle bezoekers van deze toiletten"
}
},
{
"if": "toilets:menstrual_products=limited",
"then": {
"en": "Free menstrual products are available to some visitors of these toilets",
"nl": "De gratis menstruatieproducten zijn enkel beschikbaar in een deel van de toiletten"
},
"hideInAnswer": "gender_segregated=yes"
},
{
"if": "toilets:menstrual_products=no",
"alsoShowIf": "toilets:menstrual_products=",
"then": {
"en": "No free menstrual products are available here",
"nl": "Er zijn geen gratis menstruatieproducten beschikbaar"
}
}
]
},
{
"id": "menstrual_products_location",
"question": {
"en": "Where are the free menstrual products located?",
"nl": "Waar bevinden de gratis menstruatieproducten zich?"
},
"condition": {
"or": [
"toilets:menstrual_products=limited",
"toilets:menstrual_products:location~*"
]
},
"render": {
"en": "The menstrual products are located in {toilets:menstrual_products:location}",
"nl": "De menstruatieproducten bevinden zich in {toilets:menstrual_products:location}"
},
"freeform": {
"key": "toilets:menstrual_products:location",
"inline": true
},
"mappings": [
{
"then": {
"en": "The free, menstrual products are located in the toilet for women",
"nl": "De gratis menstruatieproducten bevinden zich in het vrouwentoilet"
},
"if": "toilets:menstrual_products:location=female_toilet",
"alsoShowIf": "toilets:menstrual_products:location="
},
{
"then": {
"en": "The free, menstrual products are located in the toilet for men",
"nl": "De gratis menstruatieproducten bevinden zich in het mannentoilet"
},
"if": "toilets:menstrual_products:location=male_toilet"
},
{
"if": "toilets:menstrual_products:location=wheelchair_toilet",
"then": {
"en": "The free, menstrual products are located in the toilet for wheelchair users",
"nl": "De gratis menstruatieproducten bevinden zich in het rolstoeltoegankelijke toilet"
}
}
]
},
{
"id": "toilets-changing-table",
"labels": [
@ -576,7 +685,8 @@
"ca": "Hi ha un canviador per a nadons",
"cs": "Přebalovací pult je k dispozici"
},
"if": "changing_table=yes"
"if": "changing_table=yes",
"icon": "./assets/layers/toilet/baby.svg"
},
{
"if": "changing_table=no",
@ -610,10 +720,10 @@
"cs": "Kde je umístěn přebalovací pult?"
},
"render": {
"en": "The changing table is located at {changing_table:location}",
"de": "Die Wickeltabelle befindet sich in {changing_table:location}",
"en": "A changing table is located at {changing_table:location}",
"de": "Ein Wickeltisch befindet sich in {changing_table:location}",
"fr": "Emplacement de la table à langer : {changing_table:location}",
"nl": "De luiertafel bevindt zich in {changing_table:location}",
"nl": "Er bevindt zich een luiertafel in {changing_table:location}",
"it": "Il fasciatoio si trova presso {changing_table:location}",
"es": "El cambiador está en {changing_table:location}",
"da": "Puslebordet er placeret på {changing_table:location}",
@ -632,10 +742,10 @@
"mappings": [
{
"then": {
"en": "The changing table is in the toilet for women. ",
"de": "Der Wickeltisch befindet sich in der Damentoilette. ",
"en": "A changing table is in the toilet for women",
"de": "Ein Wickeltisch ist in der Damentoilette vorhanden",
"fr": "La table à langer est dans les toilettes pour femmes. ",
"nl": "De luiertafel bevindt zich in de vrouwentoiletten ",
"nl": "Er bevindt zich een luiertafel in de vrouwentoiletten ",
"it": "Il fasciatoio è nei servizi igienici femminili. ",
"da": "Puslebordet er på toilettet til kvinder. ",
"ca": "El canviador està al lavabo per a dones. ",
@ -645,10 +755,10 @@
},
{
"then": {
"en": "The changing table is in the toilet for men. ",
"de": "Der Wickeltisch befindet sich in der Herrentoilette. ",
"en": "A changing table is in the toilet for men",
"de": "Ein Wickeltisch ist in der Herrentoilette vorhanden",
"fr": "La table à langer est dans les toilettes pour hommes. ",
"nl": "De luiertafel bevindt zich in de herentoiletten ",
"nl": "Er bevindt zich een luiertafel in de herentoiletten ",
"it": "Il fasciatoio è nei servizi igienici maschili. ",
"ca": "El canviador està al lavabo per a homes. ",
"cs": "Přebalovací pult je na pánské toaletě. "
@ -658,10 +768,10 @@
{
"if": "changing_table:location=wheelchair_toilet",
"then": {
"en": "The changing table is in the toilet for wheelchair users. ",
"de": "Der Wickeltisch befindet sich in der Toilette für Rollstuhlfahrer. ",
"en": "A changing table is in the toilet for wheelchair users",
"de": "Ein Wickeltisch ist in der barrierefreien Toilette vorhanden",
"fr": "La table à langer est dans les toilettes pour personnes à mobilité réduite. ",
"nl": "De luiertafel bevindt zich in de rolstoeltoegankelijke toilet ",
"nl": "Er bevindt zich een luiertafel in de rolstoeltoegankelijke toilet ",
"it": "Il fasciatoio è nei servizi igienici per persone in sedia a rotelle. ",
"da": "Puslebordet er på toilettet for kørestolsbrugere. ",
"ca": "El canviador està al lavabo per a usuaris de cadira de rodes. ",
@ -671,10 +781,10 @@
{
"if": "changing_table:location=dedicated_room",
"then": {
"en": "The changing table is in a dedicated room. ",
"de": "Der Wickeltisch befindet sich in einem eigenen Raum. ",
"en": "A changing table is in a dedicated room",
"de": "Ein Wickeltisch befindet sich in einem eigenen Raum",
"fr": "La table à langer est dans un espace dédié. ",
"nl": "De luiertafel bevindt zich in een daartoe voorziene kamer ",
"nl": "Er bevindt zich een luiertafel in een daartoe voorziene kamer ",
"it": "Il fasciatoio è in una stanza dedicata. ",
"es": "El cambiador está en una habitación dedicada ",
"da": "Vuggestuen står i et særligt rum. ",
@ -683,6 +793,7 @@
}
}
],
"multiAnswer": true,
"id": "toilet-changing_table:location"
},
{

View file

@ -54,5 +54,7 @@
"pharmacy",
"ice_cream"
],
"widenFactor": 3
"overideAll": {
"minzoom": 16
}
}