From 37222bcbc3156e06624589b763b46fb13b6449d7 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Fri, 5 Nov 2021 21:17:20 +0100 Subject: [PATCH 01/13] Experiment with post partner --- assets/themes/postboxes/postboxes.json | 110 ++++++++++++++++++++++++- langs/themes/de.json | 8 ++ langs/themes/en.json | 44 ++++++++++ 3 files changed, 160 insertions(+), 2 deletions(-) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index 086b5f4235..bf926c07aa 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -111,13 +111,44 @@ }, "minzoom": 12, "source": { - "osmTags": "amenity=post_office" + "osmTags": { + "or": [ + "amenity=post_office", + "post_office=post_partner" + ] + } }, "title": { "render": { "en": "Post Office", "de": "Poststelle" - } + }, + "mappings": [ + { + "if": { + "and": [ + "post_office=post_partner", + "name=" + ] + }, + "then": { + "en": "Post partner at a shop", + "de": "Postfiliale im Einzelhandel" + } + }, + { + "if": { + "and": [ + "post_office=post_partner", + "name~*" + ] + }, + "then": { + "en": "Post partner at {name}", + "de": "Postfiliale im {name}" + } + } + ] }, "description": { "en": "A layer showing post offices.", @@ -150,6 +181,81 @@ } ], "id": "OH" + }, + { + "id": "partner-brand", + "render": { + "en": "This location offers services for {post_office:brand}" + }, + "question": { + "en": "For which brand does this location offer services?" + }, + "condition": "post_office=post_partner", + "freeform": { + "key": "post_office:brand", + "type": "string" + }, + "multiAnswer": true, + "mappings": [ + { + "if": "post_office:brand=DHL", + "then": { + "en": "This location offers services for DHL" + }, + "hideInAnswer": "_country=de" + }, + { + "if": "post_office:brand=DPD", + "then": { + "en": "This location offers services for DPD" + } + }, + { + "if": "post_office:brand=GLS", + "then": { + "en": "This location offers services for GLS" + } + }, + { + "if": "post_office:brand=UPS", + "then": { + "en": "This location offers services for UPS" + } + }, + { + "if": "post_office:brand=DHL Paketshop", + "then": { + "en": "This location is a DHL Paketshop" + }, + "hideInAnswer": "_country!=de" + }, + { + "if": "post_office:brand=Hermes PaketShop", + "then": { + "en": "This location is a Hermes PaketShop" + }, + "hideInAnswer": "_country!=de" + }, + { + "if": "post_office:brand=PostNL", + "then": { + "en": "This location is a PostNL-point" + }, + "hideInAnswer": { + "and": [ + "_country!=nl", + "_country!=be" + ] + } + }, + { + "if": "post_office:brand=bpost", + "then": { + "en": "This location offers services for bpost" + }, + "hideInAnswer": "_country!=be" + } + ] } ], "presets": [ diff --git a/langs/themes/de.json b/langs/themes/de.json index 93b3b2ac12..b5fcf7742e 100644 --- a/langs/themes/de.json +++ b/langs/themes/de.json @@ -1070,6 +1070,14 @@ } }, "title": { + "mappings": { + "0": { + "then": "Postfiliale im Einzelhandel" + }, + "1": { + "then": "Postfiliale im {name}" + } + }, "render": "Poststelle" } } diff --git a/langs/themes/en.json b/langs/themes/en.json index ff3351ae1f..adc7c6dd17 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -1216,9 +1216,47 @@ }, "question": "What are the opening hours for this post office?", "render": "Opening Hours: {opening_hours_table()}" + }, + "partner-brand": { + "mappings": { + "0": { + "then": "This location offers services for DHL" + }, + "1": { + "then": "This location offers services for DPD" + }, + "2": { + "then": "This location offers services for GLS" + }, + "3": { + "then": "This location offers services for UPS" + }, + "4": { + "then": "This location is a DHL Paketshop" + }, + "5": { + "then": "This location is a Hermes PaketShop" + }, + "6": { + "then": "This location is a PostNL-point" + }, + "7": { + "then": "This location offers services for bpost" + } + }, + "question": "For which brand does this location offer services?", + "render": "This location offers services for {post_office:brand}" } }, "title": { + "mappings": { + "0": { + "then": "Post partner at a shop" + }, + "1": { + "then": "Post partner at {name}" + } + }, "render": "Post Office" } } @@ -1332,6 +1370,12 @@ "description": "Addresses", "name": "Known addresses in OSM", "tagRenderings": { + "address-sign-image": { + "render": "{image_carousel(image:address)}
{image_upload(image:address, Add image of the address)}" + }, + "fixme": { + "question": "What should be fixed here? Please explain" + }, "uk_addresses_explanation_osm": { "render": "This address is saved in OpenStreetMap" }, From 916a04240840b232a649f5c7d59dd7fad42d9313 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 7 Nov 2021 00:04:26 +0100 Subject: [PATCH 02/13] Add service questions --- assets/themes/postboxes/postboxes.json | 135 +++++++++++++++++++++++++ langs/themes/en.json | 60 +++++++++++ 2 files changed, 195 insertions(+) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index bf926c07aa..f32cbdfd0e 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -256,6 +256,141 @@ "hideInAnswer": "_country!=be" } ] + }, + { + "id": "letter-from", + "render": { + "en": "You can post letters with these companies: {post_office:letter_from}" + }, + "question": { + "en": "Can you post a letter here?" + }, + "freeform": { + "key": "post_office:letter_from", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:letter_from=yes", + "then": { + "en": "You can post letters here" + } + }, + { + "if": "post_office:letter_from=no", + "then": { + "en": "You can't post letters here" + } + } + ] + }, + { + "id": "parcel-from", + "render": { + "en": "You can post parcels with these companies: {post_office:parcel_from}" + }, + "question": { + "en": "Can you send a parcel here?" + }, + "freeform": { + "key": "post_office:parcel_from", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:parcel_from=yes", + "then": { + "en": "You can send parcels here" + } + }, + { + "if": "post_office:parcel_from=no", + "then": { + "en": "You can't send parcels here" + } + } + ] + }, + { + "id": "parcel-pickup", + "render": { + "en": "You can pick up parcels from these companies: {post_office:parcel_pickup}" + }, + "question": { + "en": "Can you pick up missed parcels here?" + }, + "freeform": { + "key": "post_office:parcel_pickup", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:parcel_pickup=yes", + "then": { + "en": "You can pick up missed parcels here" + } + }, + { + "if": "post_office:parcel_pickup=no", + "then": { + "en": "You can't pick up missed parcels here" + } + } + ] + }, + { + "id": "parcel-to", + "render": { + "en": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" + }, + "question": { + "en": "Can you send parcels to here for pickup?" + }, + "freeform": { + "key": "post_office:parcel_to", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:parcel_to=yes", + "then": { + "en": "You can send parcels to here for pickup" + } + }, + { + "if": "post_office:parcel_to=no", + "then": { + "en": "You can't send parcels to here for pickup" + } + } + ] + }, + { + "id": "stamps", + "render": { + "en": "You can buy stamps from companies: {post_office:stamps}" + }, + "question": { + "en": "Can you buy stamps here?" + }, + "freeform": { + "key": "post_office:stamps", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:stamps=yes", + "then": { + "en": "You can buy stamps here" + } + }, + { + "if": "post_office:stamps=no", + "then": { + "en": "You can't buy stamps here" + } + } + ] } ], "presets": [ diff --git a/langs/themes/en.json b/langs/themes/en.json index adc7c6dd17..d4bd6eedd6 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -1217,6 +1217,54 @@ "question": "What are the opening hours for this post office?", "render": "Opening Hours: {opening_hours_table()}" }, + "letter-from": { + "mappings": { + "0": { + "then": "You can post letters here" + }, + "1": { + "then": "You can't post letters here" + } + }, + "question": "Can you post a letter here?", + "render": "You can post letters with these companies: {post_office:letter_from}" + }, + "parcel-from": { + "mappings": { + "0": { + "then": "You can send parcels here" + }, + "1": { + "then": "You can't send parcels here" + } + }, + "question": "Can you send a parcel here?", + "render": "You can post parcels with these companies: {post_office:parcel_from}" + }, + "parcel-pickup": { + "mappings": { + "0": { + "then": "You can pick up missed parcels here" + }, + "1": { + "then": "You can't pick up missed parcels here" + } + }, + "question": "Can you pick up missed parcels here?", + "render": "You can pick up parcels from these companies: {post_office:parcel_pickup}" + }, + "parcel-to": { + "mappings": { + "0": { + "then": "You can send parcels to here for pickup" + }, + "1": { + "then": "You can't send parcels to here for pickup" + } + }, + "question": "Can you send parcels to here for pickup?", + "render": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" + }, "partner-brand": { "mappings": { "0": { @@ -1246,6 +1294,18 @@ }, "question": "For which brand does this location offer services?", "render": "This location offers services for {post_office:brand}" + }, + "stamps": { + "mappings": { + "0": { + "then": "You can buy stamps here" + }, + "1": { + "then": "You can't buy stamps here" + } + }, + "question": "Can you buy stamps here?", + "render": "You can buy stamps from companies: {post_office:stamps}" } }, "title": { From ece39191ea510fdcfd7768459258e12afc40a41f Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 7 Nov 2021 14:38:33 +0100 Subject: [PATCH 03/13] Added shop layer to add new post partners --- assets/themes/postboxes/postboxes.json | 98 ++++++++++++++++++++++++++ langs/themes/en.json | 36 ++++++++++ 2 files changed, 134 insertions(+) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index f32cbdfd0e..e64c25438e 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -182,6 +182,30 @@ ], "id": "OH" }, + { + "id": "post_partner", + "question": { + "en": "Is this a post partner?" + }, + "condition": "post_office=post_partner", + "mappings": [ + { + "if": "post_office=post_partner", + "then": { + "en": "This shop is a post partner" + } + }, + { + "if": "post_office=", + "then": { + "en": "This shop is not a post partner" + }, + "addExtraTags": [ + "was:post_office=post_partner" + ] + } + ] + }, { "id": "partner-brand", "render": { @@ -446,6 +470,80 @@ } } ] + }, + { + "id": "addLayer", + "name": { + "en": "Add new post partner" + }, + "description": { + "en": "Add a new post partner to the map" + }, + "source": { + "osmTags": "shop~*" + }, + "minzoom": 20, + "minzoomVisible": 20, + "title": { + "render": { + "en": "Shop" + }, + "mappings": [ + { + "if": "name~*", + "then": { + "en": "{name}" + } + } + ] + }, + "mapRendering": [ + { + "icon": { + "render": "./assets/themes/shops/shop.svg" + }, + "iconSize": { + "render": "40,40,center" + }, + "location": [ + "point", + "centroid" + ] + }, + { + "color": { + "render": "#DADADA" + }, + "width": { + "render": "1" + } + } + ], + "tagRenderings": [ + { + "id": "post_partner", + "question": { + "en": "Is this shop a post partner?" + }, + "mappings": [ + { + "if": "post_office=post_partner", + "then": { + "en": "This shop is a post partner" + } + }, + { + "if": "post_office=", + "then": { + "en": "This shop is not a post partner" + }, + "addExtraTags": [ + "was:post_office=post_partner" + ] + } + ] + } + ] } ] } \ No newline at end of file diff --git a/langs/themes/en.json b/langs/themes/en.json index d4bd6eedd6..c2d1f0bff1 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -1295,6 +1295,17 @@ "question": "For which brand does this location offer services?", "render": "This location offers services for {post_office:brand}" }, + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this a post partner?" + }, "stamps": { "mappings": { "0": { @@ -1319,6 +1330,31 @@ }, "render": "Post Office" } + }, + "2": { + "description": "Add a new post partner to the map", + "name": "Add new post partner", + "tagRenderings": { + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this a post partner?" + } + }, + "title": { + "mappings": { + "0": { + "then": "{name}" + } + }, + "render": "Shop" + } } }, "shortDescription": "A map showing postboxes and post offices", From 52fe5fa976013a36eca56ffbd9abbf7c0464247f Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sat, 13 Nov 2021 20:59:24 +0100 Subject: [PATCH 04/13] Updated names --- assets/themes/postboxes/postboxes.json | 9 +- langs/themes/de.json | 8 ++ langs/themes/en.json | 134 +++++++++++++++++++++++++ 3 files changed, 145 insertions(+), 6 deletions(-) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index e64c25438e..89751a503f 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -474,10 +474,10 @@ { "id": "addLayer", "name": { - "en": "Add new post partner" + "en": "Shops" }, "description": { - "en": "Add a new post partner to the map" + "en": "Add a new post partner to the map in an existing shop" }, "source": { "osmTags": "shop~*" @@ -536,10 +536,7 @@ "if": "post_office=", "then": { "en": "This shop is not a post partner" - }, - "addExtraTags": [ - "was:post_office=post_partner" - ] + } } ] } diff --git a/langs/themes/de.json b/langs/themes/de.json index 910c87b74d..578cbd0b80 100644 --- a/langs/themes/de.json +++ b/langs/themes/de.json @@ -1082,6 +1082,14 @@ } }, "title": { + "mappings": { + "0": { + "then": "Postfiliale im Einzelhandel" + }, + "1": { + "then": "Postfiliale im {name}" + } + }, "render": "Poststelle" } } diff --git a/langs/themes/en.json b/langs/themes/en.json index 01c86e54e3..5cd1d2bc97 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -1215,11 +1215,145 @@ }, "question": "What are the opening hours for this post office?", "render": "Opening Hours: {opening_hours_table()}" + }, + "letter-from": { + "mappings": { + "0": { + "then": "You can post letters here" + }, + "1": { + "then": "You can't post letters here" + } + }, + "question": "Can you post a letter here?", + "render": "You can post letters with these companies: {post_office:letter_from}" + }, + "parcel-from": { + "mappings": { + "0": { + "then": "You can send parcels here" + }, + "1": { + "then": "You can't send parcels here" + } + }, + "question": "Can you send a parcel here?", + "render": "You can post parcels with these companies: {post_office:parcel_from}" + }, + "parcel-pickup": { + "mappings": { + "0": { + "then": "You can pick up missed parcels here" + }, + "1": { + "then": "You can't pick up missed parcels here" + } + }, + "question": "Can you pick up missed parcels here?", + "render": "You can pick up parcels from these companies: {post_office:parcel_pickup}" + }, + "parcel-to": { + "mappings": { + "0": { + "then": "You can send parcels to here for pickup" + }, + "1": { + "then": "You can't send parcels to here for pickup" + } + }, + "question": "Can you send parcels to here for pickup?", + "render": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" + }, + "partner-brand": { + "mappings": { + "0": { + "then": "This location offers services for DHL" + }, + "1": { + "then": "This location offers services for DPD" + }, + "2": { + "then": "This location offers services for GLS" + }, + "3": { + "then": "This location offers services for UPS" + }, + "4": { + "then": "This location is a DHL Paketshop" + }, + "5": { + "then": "This location is a Hermes PaketShop" + }, + "6": { + "then": "This location is a PostNL-point" + }, + "7": { + "then": "This location offers services for bpost" + } + }, + "question": "For which brand does this location offer services?", + "render": "This location offers services for {post_office:brand}" + }, + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this a post partner?" + }, + "stamps": { + "mappings": { + "0": { + "then": "You can buy stamps here" + }, + "1": { + "then": "You can't buy stamps here" + } + }, + "question": "Can you buy stamps here?", + "render": "You can buy stamps from companies: {post_office:stamps}" } }, "title": { + "mappings": { + "0": { + "then": "Post partner at a shop" + }, + "1": { + "then": "Post partner at {name}" + } + }, "render": "Post Office" } + }, + "2": { + "description": "Add a new post partner to the map in an existing shop", + "name": "Shops", + "tagRenderings": { + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this shop a post partner?" + } + }, + "title": { + "mappings": { + "0": { + "then": "{name}" + } + }, + "render": "Shop" + } } }, "shortDescription": "A map showing postboxes and post offices", From c4829f9ab82e934221f88b3a187c8bb8ec6ee89c Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Tue, 22 Feb 2022 19:55:08 +0100 Subject: [PATCH 05/13] Add mappings --- assets/themes/postboxes/postboxes.json | 30 +++++- langs/themes/de.json | 8 ++ langs/themes/en.json | 134 +++++++++++++++++++++++++ 3 files changed, 170 insertions(+), 2 deletions(-) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index aefc139a3b..e67a2ab4e9 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -56,7 +56,33 @@ "zh_Hant": "郵筒", "id": "Kotak pos", "hu": "Postaláda" - } + }, + "mappings": [ + { + "if": { + "and": [ + "post_office=post_partner", + "name=" + ] + }, + "then": { + "en": "Post partner at a shop", + "de": "Postfiliale im Einzelhandel" + } + }, + { + "if": { + "and": [ + "post_office=post_partner", + "name~*" + ] + }, + "then": { + "en": "Post partner at {name}", + "de": "Postfiliale im {name}" + } + } + ] }, "description": { "en": "The layer showing postboxes.", @@ -489,7 +515,7 @@ ] }, { - "id": "addLayer", + "id": "shops", "name": { "en": "Shops" }, diff --git a/langs/themes/de.json b/langs/themes/de.json index b00308813d..74bb01e6ba 100644 --- a/langs/themes/de.json +++ b/langs/themes/de.json @@ -1005,6 +1005,14 @@ } }, "title": { + "mappings": { + "0": { + "then": "Postfiliale im Einzelhandel" + }, + "1": { + "then": "Postfiliale im {name}" + } + }, "render": "Briefkasten" } }, diff --git a/langs/themes/en.json b/langs/themes/en.json index fb0db2db45..c727c7d277 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -1148,6 +1148,14 @@ } }, "title": { + "mappings": { + "0": { + "then": "Post partner at a shop" + }, + "1": { + "then": "Post partner at {name}" + } + }, "render": "Postbox" } }, @@ -1177,11 +1185,137 @@ }, "question": "What are the opening hours for this post office?", "render": "Opening Hours: {opening_hours_table()}" + }, + "letter-from": { + "mappings": { + "0": { + "then": "You can post letters here" + }, + "1": { + "then": "You can't post letters here" + } + }, + "question": "Can you post a letter here?", + "render": "You can post letters with these companies: {post_office:letter_from}" + }, + "parcel-from": { + "mappings": { + "0": { + "then": "You can send parcels here" + }, + "1": { + "then": "You can't send parcels here" + } + }, + "question": "Can you send a parcel here?", + "render": "You can post parcels with these companies: {post_office:parcel_from}" + }, + "parcel-pickup": { + "mappings": { + "0": { + "then": "You can pick up missed parcels here" + }, + "1": { + "then": "You can't pick up missed parcels here" + } + }, + "question": "Can you pick up missed parcels here?", + "render": "You can pick up parcels from these companies: {post_office:parcel_pickup}" + }, + "parcel-to": { + "mappings": { + "0": { + "then": "You can send parcels to here for pickup" + }, + "1": { + "then": "You can't send parcels to here for pickup" + } + }, + "question": "Can you send parcels to here for pickup?", + "render": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" + }, + "partner-brand": { + "mappings": { + "0": { + "then": "This location offers services for DHL" + }, + "1": { + "then": "This location offers services for DPD" + }, + "2": { + "then": "This location offers services for GLS" + }, + "3": { + "then": "This location offers services for UPS" + }, + "4": { + "then": "This location is a DHL Paketshop" + }, + "5": { + "then": "This location is a Hermes PaketShop" + }, + "6": { + "then": "This location is a PostNL-point" + }, + "7": { + "then": "This location offers services for bpost" + } + }, + "question": "For which brand does this location offer services?", + "render": "This location offers services for {post_office:brand}" + }, + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this a post partner?" + }, + "stamps": { + "mappings": { + "0": { + "then": "You can buy stamps here" + }, + "1": { + "then": "You can't buy stamps here" + } + }, + "question": "Can you buy stamps here?", + "render": "You can buy stamps from companies: {post_office:stamps}" } }, "title": { "render": "Post Office" } + }, + "2": { + "description": "Add a new post partner to the map in an existing shop", + "name": "Shops", + "tagRenderings": { + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this shop a post partner?" + } + }, + "title": { + "mappings": { + "0": { + "then": "{name}" + } + }, + "render": "Shop" + } } }, "shortDescription": "A map showing postboxes and post offices", From 3bf792ba69df1827b035e0c9007431e886d82d73 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Tue, 22 Feb 2022 20:50:14 +0100 Subject: [PATCH 06/13] Change zoom level --- assets/themes/postboxes/postboxes.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index e67a2ab4e9..a7af421822 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -525,8 +525,8 @@ "source": { "osmTags": "shop~*" }, - "minzoom": 20, - "minzoomVisible": 20, + "minzoom": 21, + "minzoomVisible": 21, "title": { "render": { "en": "Shop" From db24ae4c307a549eded59010d91f34b28e0dc853 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 1 May 2022 19:08:29 +0200 Subject: [PATCH 07/13] Moved mappings to correct place, add translation --- assets/themes/postboxes/postboxes.json | 65 ++++++++++++++------------ langs/themes/de.json | 16 +++---- langs/themes/en.json | 16 +++---- langs/themes/nl.json | 5 ++ 4 files changed, 56 insertions(+), 46 deletions(-) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index a1ee435f7f..6f0764b2cb 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -63,36 +63,10 @@ "zh_Hant": "郵筒", "id": "Kotak pos", "hu": "Postaláda", - "nl": "Brievenbus", "ca": "Bústia", - "es": "Buzón de correo" - }, - "mappings": [ - { - "if": { - "and": [ - "post_office=post_partner", - "name=" - ] - }, - "then": { - "en": "Post partner at a shop", - "de": "Postfiliale im Einzelhandel" - } - }, - { - "if": { - "and": [ - "post_office=post_partner", - "name~*" - ] - }, - "then": { - "en": "Post partner at {name}", - "de": "Postfiliale im {name}" - } - } - ] + "es": "Buzón de correo", + "nl": "Brievenbus" + } }, "description": { "en": "The layer showing postboxes.", @@ -192,7 +166,34 @@ "nl": "Postkantoor", "ca": "Oficina de correus", "es": "Oficina de Correo" - } + }, + "mappings": [ + { + "if": { + "and": [ + "post_office=post_partner", + "name=" + ] + }, + "then": { + "en": "Post partner at a shop", + "de": "Postfiliale im Einzelhandel", + "nl": "Postpartner in een winkel" + } + }, + { + "if": { + "and": [ + "post_office=post_partner", + "name~*" + ] + }, + "then": { + "en": "Post partner at {name}", + "de": "Postfiliale im {name}" + } + } + ] }, "description": { "en": "A layer showing post offices.", @@ -528,6 +529,10 @@ { "if": "opening_hours~*", "then": "isOpen" + }, + { + "if": "shop~*", + "then": "./assets/themes/shops/shop.svg" } ], "iconSize": { diff --git a/langs/themes/de.json b/langs/themes/de.json index 7d11415a26..662165ef2a 100644 --- a/langs/themes/de.json +++ b/langs/themes/de.json @@ -775,14 +775,6 @@ } }, "title": { - "mappings": { - "0": { - "then": "Postfiliale im Einzelhandel" - }, - "1": { - "then": "Postfiliale im {name}" - } - }, "render": "Briefkasten" } }, @@ -815,6 +807,14 @@ } }, "title": { + "mappings": { + "0": { + "then": "Postfiliale im Einzelhandel" + }, + "1": { + "then": "Postfiliale im {name}" + } + }, "render": "Poststelle" } } diff --git a/langs/themes/en.json b/langs/themes/en.json index efc5be0bf0..f1cb0ae1ae 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -804,14 +804,6 @@ } }, "title": { - "mappings": { - "0": { - "then": "Post partner at a shop" - }, - "1": { - "then": "Post partner at {name}" - } - }, "render": "Postbox" } }, @@ -945,6 +937,14 @@ } }, "title": { + "mappings": { + "0": { + "then": "Post partner at a shop" + }, + "1": { + "then": "Post partner at {name}" + } + }, "render": "Post Office" } }, diff --git a/langs/themes/nl.json b/langs/themes/nl.json index f29c2d8a43..dbcac5cc80 100644 --- a/langs/themes/nl.json +++ b/langs/themes/nl.json @@ -754,6 +754,11 @@ } }, "title": { + "mappings": { + "0": { + "then": "Postpartner in een winkel" + } + }, "render": "Postkantoor" } } From c1570e401a77731d36cba8162513d1bf1d12a5cf Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Wed, 10 Aug 2022 21:20:09 +0200 Subject: [PATCH 08/13] Disable shops layer by default --- assets/themes/postboxes/postboxes.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index 6eb01faebf..459846c601 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -74,7 +74,8 @@ "ca": "Bústia", "es": "Buzón de correo", "nb_NO": "Postboks", - "fr": "Boîte à lettres" + "fr": "Boîte à lettres", + "nl": "Brievenbus" } }, "description": { @@ -650,7 +651,8 @@ } ] } - ] + ], + "shownByDefault": false } ] } \ No newline at end of file From 573d88af430b52e00e633eee4a957ffad5e63549 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 11 Aug 2022 12:52:26 +0200 Subject: [PATCH 09/13] Split out layers, added parcel lockers --- .../layers/parcel_lockers/license_info.json | 13 + .../layers/parcel_lockers/parcel_lockers.json | 62 ++ .../layers/parcel_lockers/parcel_lockers.svg | 177 +++++ assets/layers/postboxes/license_info.json | 14 + .../{themes => layers}/postboxes/postbox.svg | 0 assets/layers/postboxes/postboxes.json | 101 +++ .../postoffices}/license_info.json | 12 - .../postoffices}/post_office.svg | 0 assets/layers/postoffices/postoffices.json | 431 ++++++++++++ .../mapcomplete-changes.json | 2 +- assets/themes/postboxes/postboxes.json | 636 +----------------- 11 files changed, 830 insertions(+), 618 deletions(-) create mode 100644 assets/layers/parcel_lockers/license_info.json create mode 100644 assets/layers/parcel_lockers/parcel_lockers.json create mode 100644 assets/layers/parcel_lockers/parcel_lockers.svg create mode 100644 assets/layers/postboxes/license_info.json rename assets/{themes => layers}/postboxes/postbox.svg (100%) create mode 100644 assets/layers/postboxes/postboxes.json rename assets/{themes/postboxes => layers/postoffices}/license_info.json (53%) rename assets/{themes/postboxes => layers/postoffices}/post_office.svg (100%) create mode 100644 assets/layers/postoffices/postoffices.json diff --git a/assets/layers/parcel_lockers/license_info.json b/assets/layers/parcel_lockers/license_info.json new file mode 100644 index 0000000000..03368e831a --- /dev/null +++ b/assets/layers/parcel_lockers/license_info.json @@ -0,0 +1,13 @@ +[ + { + "path": "parcel_lockers.svg", + "license": "CC-BY", + "authors": [ + "Emmanuel Darmon", + "Noun Project" + ], + "sources": [ + "https://thenounproject.com/icon/parcel-locker-249755/" + ] + } +] \ No newline at end of file diff --git a/assets/layers/parcel_lockers/parcel_lockers.json b/assets/layers/parcel_lockers/parcel_lockers.json new file mode 100644 index 0000000000..526e4a55a0 --- /dev/null +++ b/assets/layers/parcel_lockers/parcel_lockers.json @@ -0,0 +1,62 @@ +{ + "id": "parcel_lockers", + "name": { + "en": "Parcel Lockers" + }, + "description": { + "en": "Layer showing parcel lockers for collecting and sending parcels." + }, + "minzoom": 12, + "source": { + "osmTags": "amenity=parcel_locker" + }, + "presets": [ + { + "title": { + "en": "a parcel locker", + "nl": "een pakketautomaat" + }, + "preciseInput": { + "preferredBackground": "photo" + }, + "tags": [ + "amenity=parcel_locker" + ] + } + ], + "title": { + "render": { + "en": "Parcel Locker" + }, + "mappings": [ + { + "if": "brand~*", + "then": { + "en": "{brand} parcel locker" + } + } + ] + }, + "tagRenderings": [], + "filter": [], + "allowMove": { + "enableImproveAccuracy": true + }, + "deletion": {}, + "mapRendering": [ + { + "icon": "./assets/layers/parcel_lockers/parcel_lockers.svg", + "iconBadges": [ + { + "if": "opening_hours~*", + "then": "isOpen" + } + ], + "iconSize": "40,40,center", + "location": [ + "point", + "centroid" + ] + } + ] +} \ No newline at end of file diff --git a/assets/layers/parcel_lockers/parcel_lockers.svg b/assets/layers/parcel_lockers/parcel_lockers.svg new file mode 100644 index 0000000000..d3c7781baa --- /dev/null +++ b/assets/layers/parcel_lockers/parcel_lockers.svg @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/layers/postboxes/license_info.json b/assets/layers/postboxes/license_info.json new file mode 100644 index 0000000000..8e151d9e0b --- /dev/null +++ b/assets/layers/postboxes/license_info.json @@ -0,0 +1,14 @@ +[ + { + "path": "postbox.svg", + "license": "CC BY 4.0", + "authors": [ + "Vincent Le Moign", + "https://twitter.com/webalys" + ], + "sources": [ + "https://upload.wikimedia.org/wikipedia/commons/6/6d/726-postbox.svg", + "http://emoji.streamlineicons.com" + ] + } +] \ No newline at end of file diff --git a/assets/themes/postboxes/postbox.svg b/assets/layers/postboxes/postbox.svg similarity index 100% rename from assets/themes/postboxes/postbox.svg rename to assets/layers/postboxes/postbox.svg diff --git a/assets/layers/postboxes/postboxes.json b/assets/layers/postboxes/postboxes.json new file mode 100644 index 0000000000..ee81709d44 --- /dev/null +++ b/assets/layers/postboxes/postboxes.json @@ -0,0 +1,101 @@ +{ + "id": "postboxes", + "name": { + "en": "Postboxes", + "de": "Briefkästen", + "ru": "Почтовые ящики", + "zh_Hant": "郵筒", + "id": "Kotak pos", + "hu": "Postaládák", + "nl": "Brievenbussen", + "ca": "Bústies", + "es": "Buzones de correo", + "nb_NO": "Postbokser", + "fr": "Boîtes à lettres" + }, + "minzoom": 12, + "source": { + "osmTags": "amenity=post_box" + }, + "title": { + "render": { + "en": "Postbox", + "de": "Briefkasten", + "ru": "Почтовый ящик", + "zh_Hant": "郵筒", + "id": "Kotak pos", + "hu": "Postaláda", + "ca": "Bústia", + "es": "Buzón de correo", + "nb_NO": "Postboks", + "fr": "Boîte à lettres", + "nl": "Brievenbus" + } + }, + "description": { + "en": "The layer showing postboxes.", + "de": "Die Ebene zeigt Briefkästen.", + "zh_Hant": "這圖層顯示郵筒。", + "id": "Layer yang memperlihatkan kotak pos.", + "hu": "A postaládákat megjelenítő réteg.", + "nl": "Deze laag toont brievenbussen.", + "es": "La capa que muestra buzones de correo.", + "fr": "Le calque montrant les boîtes à lettres." + }, + "tagRenderings": [ + "images", + { + "id": "minimap", + "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" + } + ], + "presets": [ + { + "tags": [ + "amenity=post_box" + ], + "title": { + "en": "a postbox", + "de": "ein Briefkasten", + "ru": "почтовый ящик", + "zh_Hant": "郵筒", + "id": "kotak pos", + "hu": "postaláda", + "nl": "een brievenbus", + "ca": "una bústia", + "es": "un buzón de correo", + "fr": "une boîte à lettres" + } + } + ], + "deletion": { + "softDeletionTags": { + "and": [ + "amenity=", + "razed:amenity=post_box" + ] + } + }, + "mapRendering": [ + { + "icon": { + "render": "./assets/layers/postboxes/postbox.svg" + }, + "iconSize": { + "render": "40,40,bottom" + }, + "location": [ + "point", + "centroid" + ] + }, + { + "color": { + "render": "#DADADA" + }, + "width": { + "render": "1" + } + } + ] +} \ No newline at end of file diff --git a/assets/themes/postboxes/license_info.json b/assets/layers/postoffices/license_info.json similarity index 53% rename from assets/themes/postboxes/license_info.json rename to assets/layers/postoffices/license_info.json index 0c50f7040e..252ecfe664 100644 --- a/assets/themes/postboxes/license_info.json +++ b/assets/layers/postoffices/license_info.json @@ -9,17 +9,5 @@ "https://commons.wikimedia.org/wiki/File:Emojione_BW_1F3E4.svg", "https://github.com/emojione/emojione/blob/2.2.7/assets/svg_bw/1f3e4.svg" ] - }, - { - "path": "postbox.svg", - "license": "CC BY 4.0", - "authors": [ - "Vincent Le Moign", - "https://twitter.com/webalys" - ], - "sources": [ - "https://upload.wikimedia.org/wikipedia/commons/6/6d/726-postbox.svg", - "http://emoji.streamlineicons.com" - ] } ] \ No newline at end of file diff --git a/assets/themes/postboxes/post_office.svg b/assets/layers/postoffices/post_office.svg similarity index 100% rename from assets/themes/postboxes/post_office.svg rename to assets/layers/postoffices/post_office.svg diff --git a/assets/layers/postoffices/postoffices.json b/assets/layers/postoffices/postoffices.json new file mode 100644 index 0000000000..7cc67a30aa --- /dev/null +++ b/assets/layers/postoffices/postoffices.json @@ -0,0 +1,431 @@ +{ + "id": "postoffices", + "name": { + "en": "Post offices", + "de": "Poststellen", + "ru": "Почтовые отделения", + "zh_Hant": "郵局", + "id": "Kantor pos", + "hu": "Posták", + "nl": "Postkantoren", + "ca": "Oficines de correus", + "es": "Oficinas de correo", + "fr": "Bureaux de poste", + "nb_NO": "Postkontor" + }, + "minzoom": 12, + "source": { + "osmTags": { + "or": [ + "amenity=post_office", + "post_office=post_partner" + ] + } + }, + "title": { + "render": { + "en": "Post Office", + "de": "Poststelle", + "ru": "Почтовое отделение", + "zh_Hant": "郵局", + "id": "Kantor Pos", + "hu": "Posta", + "nl": "Postkantoor", + "ca": "Oficina de correus", + "es": "Oficina de Correo", + "fr": "Bureau de poste", + "nb_NO": "Postkontor" + }, + "mappings": [ + { + "if": { + "and": [ + "post_office=post_partner", + "name=" + ] + }, + "then": { + "en": "Post partner at a shop", + "de": "Postfiliale im Einzelhandel", + "nl": "Postpartner in een winkel" + } + }, + { + "if": { + "and": [ + "post_office=post_partner", + "name~*" + ] + }, + "then": { + "en": "Post partner at {name}", + "de": "Postfiliale im {name}" + } + } + ] + }, + "description": { + "en": "A layer showing post offices.", + "de": "Eine Ebene mit Postämtern.", + "zh_Hant": "圖層顯示郵局。", + "id": "Layer yang menunjukkan kantor pos.", + "hu": "Postákat megjelenítő réteg.", + "nl": "Een laag die postkantoren toont.", + "es": "Una capa que muestra oficinas de correo.", + "fr": "Un claque montrant les bureaux de poste.", + "nb_NO": "Et lag som viser postkontor." + }, + "tagRenderings": [ + "images", + { + "id": "minimap", + "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" + }, + { + "render": { + "en": "Opening Hours: {opening_hours_table()}", + "ru": "Часы работы: {opening_hours_table()}", + "zh_Hant": "開放時間:{opening_hours_table()}", + "id": "Jam Buka: {opening_hours_table()}", + "hu": "Nyitva tartás: {opening_hours_table()}", + "de": "Öffnungszeiten: {opening_hours_table()}", + "es": "Horas de Apertura: {opening_hours_table()}", + "nb_NO": "Åpningstider: {opening_hours_table()}", + "nl": "Openingsuren: {opening_hours_table()}", + "fr": "Heures d’ouverture : {opening_hours_table()}" + }, + "freeform": { + "key": "opening_hours", + "type": "opening_hours" + }, + "question": { + "en": "What are the opening hours for this post office?", + "zh_Hant": "這間郵局的開放時間是?", + "id": "Jam berapa kantor pos ini buka?", + "hu": "Mikor van nyitva ez a posta?", + "de": "Wie sind die Öffnungszeiten dieser Poststelle?", + "es": "¿Cuáles son las horas de apertura para esta oficina de correos?", + "nl": "Wat zijn de openingsuren voor dit postkantoor?", + "fr": "Quelles sont les heures d’ouverture de ce bureau de poste ?" + }, + "mappings": [ + { + "if": "opening_hours=24/7", + "then": { + "en": "24/7 opened (including holidays)", + "de": "durchgehend geöffnet (auch an Feiertagen)", + "zh_Hant": "24/7 開放 (包括假日)", + "id": "Buka 24 jam (termasuk hari libur)", + "hu": "Éjjel-nappal nyitva (munkaszüneti napokon is)", + "es": "Abierta 24/7 (incluyendo festivos)", + "nl": "24/7 open (ook tijdens feestdagen)", + "fr": "Ouvert 24h/24 (jours fériés compris)", + "nb_NO": "Døgnåpent (inkludert helligdager)" + } + } + ], + "id": "OH" + }, + { + "id": "post_partner", + "question": { + "en": "Is this a post partner?" + }, + "condition": "post_office=post_partner", + "mappings": [ + { + "if": "post_office=post_partner", + "then": { + "en": "This shop is a post partner" + } + }, + { + "if": "post_office=", + "then": { + "en": "This shop is not a post partner" + }, + "addExtraTags": [ + "was:post_office=post_partner" + ] + } + ] + }, + { + "id": "partner-brand", + "render": { + "en": "This location offers services for {post_office:brand}" + }, + "question": { + "en": "For which brand does this location offer services?" + }, + "condition": "post_office=post_partner", + "freeform": { + "key": "post_office:brand", + "type": "string" + }, + "multiAnswer": true, + "mappings": [ + { + "if": "post_office:brand=DHL", + "then": { + "en": "This location offers services for DHL" + }, + "hideInAnswer": "_country=de" + }, + { + "if": "post_office:brand=DPD", + "then": { + "en": "This location offers services for DPD" + } + }, + { + "if": "post_office:brand=GLS", + "then": { + "en": "This location offers services for GLS" + } + }, + { + "if": "post_office:brand=UPS", + "then": { + "en": "This location offers services for UPS" + } + }, + { + "if": "post_office:brand=DHL Paketshop", + "then": { + "en": "This location is a DHL Paketshop" + }, + "hideInAnswer": "_country!=de" + }, + { + "if": "post_office:brand=Hermes PaketShop", + "then": { + "en": "This location is a Hermes PaketShop" + }, + "hideInAnswer": "_country!=de" + }, + { + "if": "post_office:brand=PostNL", + "then": { + "en": "This location is a PostNL-point" + }, + "hideInAnswer": { + "and": [ + "_country!=nl", + "_country!=be" + ] + } + }, + { + "if": "post_office:brand=bpost", + "then": { + "en": "This location offers services for bpost" + }, + "hideInAnswer": "_country!=be" + } + ] + }, + { + "id": "letter-from", + "render": { + "en": "You can post letters with these companies: {post_office:letter_from}" + }, + "question": { + "en": "Can you post a letter here?" + }, + "freeform": { + "key": "post_office:letter_from", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:letter_from=yes", + "then": { + "en": "You can post letters here" + } + }, + { + "if": "post_office:letter_from=no", + "then": { + "en": "You can't post letters here" + } + } + ] + }, + { + "id": "parcel-from", + "render": { + "en": "You can post parcels with these companies: {post_office:parcel_from}" + }, + "question": { + "en": "Can you send a parcel here?" + }, + "freeform": { + "key": "post_office:parcel_from", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:parcel_from=yes", + "then": { + "en": "You can send parcels here" + } + }, + { + "if": "post_office:parcel_from=no", + "then": { + "en": "You can't send parcels here" + } + } + ] + }, + { + "id": "parcel-pickup", + "render": { + "en": "You can pick up parcels from these companies: {post_office:parcel_pickup}" + }, + "question": { + "en": "Can you pick up missed parcels here?" + }, + "freeform": { + "key": "post_office:parcel_pickup", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:parcel_pickup=yes", + "then": { + "en": "You can pick up missed parcels here" + } + }, + { + "if": "post_office:parcel_pickup=no", + "then": { + "en": "You can't pick up missed parcels here" + } + } + ] + }, + { + "id": "parcel-to", + "render": { + "en": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" + }, + "question": { + "en": "Can you send parcels to here for pickup?" + }, + "freeform": { + "key": "post_office:parcel_to", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:parcel_to=yes", + "then": { + "en": "You can send parcels to here for pickup" + } + }, + { + "if": "post_office:parcel_to=no", + "then": { + "en": "You can't send parcels to here for pickup" + } + } + ] + }, + { + "id": "stamps", + "render": { + "en": "You can buy stamps from companies: {post_office:stamps}" + }, + "question": { + "en": "Can you buy stamps here?" + }, + "freeform": { + "key": "post_office:stamps", + "type": "string" + }, + "mappings": [ + { + "if": "post_office:stamps=yes", + "then": { + "en": "You can buy stamps here" + } + }, + { + "if": "post_office:stamps=no", + "then": { + "en": "You can't buy stamps here" + } + } + ] + } + ], + "presets": [ + { + "tags": [ + "amenity=post_office" + ], + "title": { + "en": "a post office", + "de": "eine Poststelle", + "ru": "Почтовое отделение", + "zh_Hant": "郵局", + "id": "Kantor Pos", + "hu": "Posta", + "nl": "een postkantoor", + "ca": "una oficina de correus", + "es": "una oficina de correo", + "nb_NO": "et postkontor", + "fr": "un bureau de poste" + } + } + ], + "filter": [ + { + "id": "is_open", + "options": [ + { + "question": { + "en": "Currently open", + "de": "Aktuell geöffnet", + "zh_Hant": "目前開放", + "id": "Saat ini buka", + "hu": "Most nyitva", + "nl": "Momenteel geopend", + "ca": "Actualment obert", + "es": "Actualmente abierta", + "fr": "Ouvert actuellement" + }, + "osmTags": "_isOpen=yes" + } + ] + } + ], + "mapRendering": [ + { + "icon": { + "render": "square:white;./assets/layers/postoffices/post_office.svg" + }, + "iconBadges": [ + { + "if": "opening_hours~*", + "then": "isOpen" + }, + { + "if": "shop~*", + "then": "./assets/themes/shops/shop.svg" + } + ], + "iconSize": "40,40,center", + "location": [ + "point", + "centroid" + ] + }, + { + "color": "#DADADA", + "width": "1" + } + ] +} \ No newline at end of file diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 41ef55fb2c..6906ffc1db 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -301,7 +301,7 @@ }, { "if": "theme=postboxes", - "then": "./assets/themes/postboxes/postbox.svg" + "then": "./assets/layers/postboxes/postbox.svg" }, { "if": "theme=rainbow_crossings", diff --git a/assets/themes/postboxes/postboxes.json b/assets/themes/postboxes/postboxes.json index 459846c601..a144cdb066 100644 --- a/assets/themes/postboxes/postboxes.json +++ b/assets/themes/postboxes/postboxes.json @@ -32,7 +32,7 @@ "fr": "Trouvez et ajoutez des bureaux de poste et boîtes à lettres sur cette carte. Utilisez cette carte où vous pouvez envoyer vos cartes postales ! :)
Vous avez trouvez une erreur ou une boîte à lettres est manquante ? Vous pouvez modifier cette carte avec un compte OpenStreetMap gratuit. " }, "maintainer": "nicolelaine", - "icon": "./assets/themes/postboxes/postbox.svg", + "icon": "./assets/layers/postboxes/postbox.svg", "version": "0", "startLat": 53.5511, "startLon": 9.9937, @@ -44,615 +44,41 @@ "minNeededElements": 100 }, "layers": [ + "postboxes", + "postoffices", + "parcel_lockers", { - "id": "postboxes", - "name": { - "en": "Postboxes", - "de": "Briefkästen", - "ru": "Почтовые ящики", - "zh_Hant": "郵筒", - "id": "Kotak pos", - "hu": "Postaládák", - "nl": "Brievenbussen", - "ca": "Bústies", - "es": "Buzones de correo", - "nb_NO": "Postbokser", - "fr": "Boîtes à lettres" - }, - "minzoom": 12, - "source": { - "osmTags": "amenity=post_box" - }, - "title": { - "render": { - "en": "Postbox", - "de": "Briefkasten", - "ru": "Почтовый ящик", - "zh_Hant": "郵筒", - "id": "Kotak pos", - "hu": "Postaláda", - "ca": "Bústia", - "es": "Buzón de correo", - "nb_NO": "Postboks", - "fr": "Boîte à lettres", - "nl": "Brievenbus" - } - }, - "description": { - "en": "The layer showing postboxes.", - "de": "Die Ebene zeigt Briefkästen.", - "zh_Hant": "這圖層顯示郵筒。", - "id": "Layer yang memperlihatkan kotak pos.", - "hu": "A postaládákat megjelenítő réteg.", - "nl": "Deze laag toont brievenbussen.", - "es": "La capa que muestra buzones de correo.", - "fr": "Le calque montrant les boîtes à lettres." - }, - "tagRenderings": [ - "images", - { - "id": "minimap", - "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" - } - ], - "presets": [ - { - "tags": [ - "amenity=post_box" - ], - "title": { - "en": "a postbox", - "de": "ein Briefkasten", - "ru": "почтовый ящик", - "zh_Hant": "郵筒", - "id": "kotak pos", - "hu": "postaláda", - "nl": "een brievenbus", - "ca": "una bústia", - "es": "un buzón de correo", - "fr": "une boîte à lettres" - } - } - ], - "deletion": { - "softDeletionTags": { - "and": [ - "amenity=", - "razed:amenity=post_box" - ] - } - }, - "mapRendering": [ - { - "icon": { - "render": "./assets/themes/postboxes/postbox.svg" - }, - "iconSize": { - "render": "40,40,bottom" - }, - "location": [ - "point", - "centroid" - ] + "builtin": "shops", + "override": { + "minzoom": 21, + "minzoomVisible": 21, + "description": { + "en": "Add a new post partner to the map in an existing shop" }, - { - "color": { - "render": "#DADADA" - }, - "width": { - "render": "1" - } - } - ] - }, - { - "id": "postoffices", - "name": { - "en": "Post offices", - "de": "Poststellen", - "ru": "Почтовые отделения", - "zh_Hant": "郵局", - "id": "Kantor pos", - "hu": "Posták", - "nl": "Postkantoren", - "ca": "Oficines de correus", - "es": "Oficinas de correo", - "fr": "Bureaux de poste", - "nb_NO": "Postkontor" - }, - "minzoom": 12, - "source": { - "osmTags": { - "or": [ - "amenity=post_office", - "post_office=post_partner" - ] - } - }, - "title": { - "render": { - "en": "Post Office", - "de": "Poststelle", - "ru": "Почтовое отделение", - "zh_Hant": "郵局", - "id": "Kantor Pos", - "hu": "Posta", - "nl": "Postkantoor", - "ca": "Oficina de correus", - "es": "Oficina de Correo", - "fr": "Bureau de poste", - "nb_NO": "Postkontor" - }, - "mappings": [ + "+tagRenderings": [ { - "if": { - "and": [ - "post_office=post_partner", - "name=" - ] + "id": "post_partner", + "question": { + "en": "Is this shop a post partner?" }, - "then": { - "en": "Post partner at a shop", - "de": "Postfiliale im Einzelhandel", - "nl": "Postpartner in een winkel" - } - }, - { - "if": { - "and": [ - "post_office=post_partner", - "name~*" - ] - }, - "then": { - "en": "Post partner at {name}", - "de": "Postfiliale im {name}" - } + "mappings": [ + { + "if": "post_office=post_partner", + "then": { + "en": "This shop is a post partner" + } + }, + { + "if": "post_office=", + "then": { + "en": "This shop is not a post partner" + } + } + ] } - ] - }, - "description": { - "en": "A layer showing post offices.", - "de": "Eine Ebene mit Postämtern.", - "zh_Hant": "圖層顯示郵局。", - "id": "Layer yang menunjukkan kantor pos.", - "hu": "Postákat megjelenítő réteg.", - "nl": "Een laag die postkantoren toont.", - "es": "Una capa que muestra oficinas de correo.", - "fr": "Un claque montrant les bureaux de poste.", - "nb_NO": "Et lag som viser postkontor." - }, - "tagRenderings": [ - "images", - { - "id": "minimap", - "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" - }, - { - "render": { - "en": "Opening Hours: {opening_hours_table()}", - "ru": "Часы работы: {opening_hours_table()}", - "zh_Hant": "開放時間:{opening_hours_table()}", - "id": "Jam Buka: {opening_hours_table()}", - "hu": "Nyitva tartás: {opening_hours_table()}", - "de": "Öffnungszeiten: {opening_hours_table()}", - "es": "Horas de Apertura: {opening_hours_table()}", - "nb_NO": "Åpningstider: {opening_hours_table()}", - "nl": "Openingsuren: {opening_hours_table()}", - "fr": "Heures d’ouverture : {opening_hours_table()}" - }, - "freeform": { - "key": "opening_hours", - "type": "opening_hours" - }, - "question": { - "en": "What are the opening hours for this post office?", - "zh_Hant": "這間郵局的開放時間是?", - "id": "Jam berapa kantor pos ini buka?", - "hu": "Mikor van nyitva ez a posta?", - "de": "Wie sind die Öffnungszeiten dieser Poststelle?", - "es": "¿Cuáles son las horas de apertura para esta oficina de correos?", - "nl": "Wat zijn de openingsuren voor dit postkantoor?", - "fr": "Quelles sont les heures d’ouverture de ce bureau de poste ?" - }, - "mappings": [ - { - "if": "opening_hours=24/7", - "then": { - "en": "24/7 opened (including holidays)", - "de": "durchgehend geöffnet (auch an Feiertagen)", - "zh_Hant": "24/7 開放 (包括假日)", - "id": "Buka 24 jam (termasuk hari libur)", - "hu": "Éjjel-nappal nyitva (munkaszüneti napokon is)", - "es": "Abierta 24/7 (incluyendo festivos)", - "nl": "24/7 open (ook tijdens feestdagen)", - "fr": "Ouvert 24h/24 (jours fériés compris)", - "nb_NO": "Døgnåpent (inkludert helligdager)" - } - } - ], - "id": "OH" - }, - { - "id": "post_partner", - "question": { - "en": "Is this a post partner?" - }, - "condition": "post_office=post_partner", - "mappings": [ - { - "if": "post_office=post_partner", - "then": { - "en": "This shop is a post partner" - } - }, - { - "if": "post_office=", - "then": { - "en": "This shop is not a post partner" - }, - "addExtraTags": [ - "was:post_office=post_partner" - ] - } - ] - }, - { - "id": "partner-brand", - "render": { - "en": "This location offers services for {post_office:brand}" - }, - "question": { - "en": "For which brand does this location offer services?" - }, - "condition": "post_office=post_partner", - "freeform": { - "key": "post_office:brand", - "type": "string" - }, - "multiAnswer": true, - "mappings": [ - { - "if": "post_office:brand=DHL", - "then": { - "en": "This location offers services for DHL" - }, - "hideInAnswer": "_country=de" - }, - { - "if": "post_office:brand=DPD", - "then": { - "en": "This location offers services for DPD" - } - }, - { - "if": "post_office:brand=GLS", - "then": { - "en": "This location offers services for GLS" - } - }, - { - "if": "post_office:brand=UPS", - "then": { - "en": "This location offers services for UPS" - } - }, - { - "if": "post_office:brand=DHL Paketshop", - "then": { - "en": "This location is a DHL Paketshop" - }, - "hideInAnswer": "_country!=de" - }, - { - "if": "post_office:brand=Hermes PaketShop", - "then": { - "en": "This location is a Hermes PaketShop" - }, - "hideInAnswer": "_country!=de" - }, - { - "if": "post_office:brand=PostNL", - "then": { - "en": "This location is a PostNL-point" - }, - "hideInAnswer": { - "and": [ - "_country!=nl", - "_country!=be" - ] - } - }, - { - "if": "post_office:brand=bpost", - "then": { - "en": "This location offers services for bpost" - }, - "hideInAnswer": "_country!=be" - } - ] - }, - { - "id": "letter-from", - "render": { - "en": "You can post letters with these companies: {post_office:letter_from}" - }, - "question": { - "en": "Can you post a letter here?" - }, - "freeform": { - "key": "post_office:letter_from", - "type": "string" - }, - "mappings": [ - { - "if": "post_office:letter_from=yes", - "then": { - "en": "You can post letters here" - } - }, - { - "if": "post_office:letter_from=no", - "then": { - "en": "You can't post letters here" - } - } - ] - }, - { - "id": "parcel-from", - "render": { - "en": "You can post parcels with these companies: {post_office:parcel_from}" - }, - "question": { - "en": "Can you send a parcel here?" - }, - "freeform": { - "key": "post_office:parcel_from", - "type": "string" - }, - "mappings": [ - { - "if": "post_office:parcel_from=yes", - "then": { - "en": "You can send parcels here" - } - }, - { - "if": "post_office:parcel_from=no", - "then": { - "en": "You can't send parcels here" - } - } - ] - }, - { - "id": "parcel-pickup", - "render": { - "en": "You can pick up parcels from these companies: {post_office:parcel_pickup}" - }, - "question": { - "en": "Can you pick up missed parcels here?" - }, - "freeform": { - "key": "post_office:parcel_pickup", - "type": "string" - }, - "mappings": [ - { - "if": "post_office:parcel_pickup=yes", - "then": { - "en": "You can pick up missed parcels here" - } - }, - { - "if": "post_office:parcel_pickup=no", - "then": { - "en": "You can't pick up missed parcels here" - } - } - ] - }, - { - "id": "parcel-to", - "render": { - "en": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" - }, - "question": { - "en": "Can you send parcels to here for pickup?" - }, - "freeform": { - "key": "post_office:parcel_to", - "type": "string" - }, - "mappings": [ - { - "if": "post_office:parcel_to=yes", - "then": { - "en": "You can send parcels to here for pickup" - } - }, - { - "if": "post_office:parcel_to=no", - "then": { - "en": "You can't send parcels to here for pickup" - } - } - ] - }, - { - "id": "stamps", - "render": { - "en": "You can buy stamps from companies: {post_office:stamps}" - }, - "question": { - "en": "Can you buy stamps here?" - }, - "freeform": { - "key": "post_office:stamps", - "type": "string" - }, - "mappings": [ - { - "if": "post_office:stamps=yes", - "then": { - "en": "You can buy stamps here" - } - }, - { - "if": "post_office:stamps=no", - "then": { - "en": "You can't buy stamps here" - } - } - ] - } - ], - "presets": [ - { - "tags": [ - "amenity=post_office" - ], - "title": { - "en": "a post office", - "de": "eine Poststelle", - "ru": "Почтовое отделение", - "zh_Hant": "郵局", - "id": "Kantor Pos", - "hu": "Posta", - "nl": "een postkantoor", - "ca": "una oficina de correus", - "es": "una oficina de correo", - "nb_NO": "et postkontor", - "fr": "un bureau de poste" - } - } - ], - "filter": [ - { - "id": "is_open", - "options": [ - { - "question": { - "en": "Currently open", - "de": "Aktuell geöffnet", - "zh_Hant": "目前開放", - "id": "Saat ini buka", - "hu": "Most nyitva", - "nl": "Momenteel geopend", - "ca": "Actualment obert", - "es": "Actualmente abierta", - "fr": "Ouvert actuellement" - }, - "osmTags": "_isOpen=yes" - } - ] - } - ], - "mapRendering": [ - { - "icon": { - "render": "square:white;./assets/themes/postboxes/post_office.svg" - }, - "iconBadges": [ - { - "if": "opening_hours~*", - "then": "isOpen" - }, - { - "if": "shop~*", - "then": "./assets/themes/shops/shop.svg" - } - ], - "iconSize": { - "render": "40,40,bottom" - }, - "location": [ - "point", - "centroid" - ] - }, - { - "color": { - "render": "#DADADA" - }, - "width": { - "render": "1" - } - } - ] - }, - { - "id": "shops", - "name": { - "en": "Shops" - }, - "description": { - "en": "Add a new post partner to the map in an existing shop" - }, - "source": { - "osmTags": "shop~*" - }, - "minzoom": 21, - "minzoomVisible": 21, - "title": { - "render": { - "en": "Shop" - }, - "mappings": [ - { - "if": "name~*", - "then": { - "en": "{name}" - } - } - ] - }, - "mapRendering": [ - { - "icon": { - "render": "./assets/themes/shops/shop.svg" - }, - "iconSize": { - "render": "40,40,center" - }, - "location": [ - "point", - "centroid" - ] - }, - { - "color": { - "render": "#DADADA" - }, - "width": { - "render": "1" - } - } - ], - "tagRenderings": [ - { - "id": "post_partner", - "question": { - "en": "Is this shop a post partner?" - }, - "mappings": [ - { - "if": "post_office=post_partner", - "then": { - "en": "This shop is a post partner" - } - }, - { - "if": "post_office=", - "then": { - "en": "This shop is not a post partner" - } - } - ] - } - ], - "shownByDefault": false + ], + "shownByDefault": false + } } ] } \ No newline at end of file From 082ced1b661e9ceb5d0ea1a1365cfc71f4dc928e Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 11 Aug 2022 13:42:41 +0200 Subject: [PATCH 10/13] Added tagrenderings and filter --- .../layers/parcel_lockers/parcel_lockers.json | 179 +++++++++++++++++- 1 file changed, 174 insertions(+), 5 deletions(-) diff --git a/assets/layers/parcel_lockers/parcel_lockers.json b/assets/layers/parcel_lockers/parcel_lockers.json index 526e4a55a0..cac6ad666c 100644 --- a/assets/layers/parcel_lockers/parcel_lockers.json +++ b/assets/layers/parcel_lockers/parcel_lockers.json @@ -8,7 +8,17 @@ }, "minzoom": 12, "source": { - "osmTags": "amenity=parcel_locker" + "osmTags": { + "or": [ + "amenity=parcel_locker", + { + "and": [ + "amenity=vending_machine", + "vending=parcel_pickup;parcel_mail_in" + ] + } + ] + } }, "presets": [ { @@ -37,15 +47,174 @@ } ] }, - "tagRenderings": [], - "filter": [], + "tagRenderings": [ + "images", + { + "id": "brand", + "question": { + "en": "What is the brand of the parcel locker?" + }, + "freeform": { + "key": "brand", + "type": "string", + "placeholder": { + "en": "Brand" + } + }, + "mappings": [ + { + "if": "brand=Amazon Locker", + "then": { + "en": "This is an Amazon Locker" + }, + "addExtraTags": [ + "brand:wikidata=Q16974764", + "brand:wikipedia=en:Amazon Locker", + "operator=Amazon" + ] + }, + { + "if": "brand=DHL Packstation", + "then": { + "en": "This is a DHL Packstation" + }, + "addExtraTags": [ + "brand:wikidata=Q1766703", + "brand:wikipedia=de:Packstation", + "operator=DHL" + ], + "hideInAnswer": "_country!=de" + }, + { + "if": "brand=Pickup Station", + "then": { + "en": "This is a DPD Pickup Station" + }, + "addExtraTags": [ + "operator=DPD" + ], + "hideInAnswer": "_country!=pl" + }, + { + "if": "brand=PostNL", + "then": { + "en": "This is a PostNL Parcel Locker", + "nl": "Dit is een PostNL pakketautomaat" + }, + "addExtraTags": [ + "operator=PostNL" + ], + "hideInAnswer": "_country!=nl" + } + ], + "render": { + "en": "This is a {brand} parcel locker" + } + }, + { + "id": "operator", + "question": { + "en": "What is the operator of the parcel locker?" + }, + "freeform": { + "key": "operator", + "type": "string", + "placeholder": { + "en": "Operator" + } + }, + "render": { + "en": "This parcel locker is operated by {operator}" + } + }, + "opening_hours", + { + "id": "ref", + "question": { + "en": "What is the reference number/identifier of this parcel locker?" + }, + "freeform": { + "key": "ref", + "type": "string", + "placeholder": { + "en": "Reference" + } + }, + "render": { + "en": "This parcel locker has the reference {ref}" + } + }, + { + "id": "mail-in", + "question": { + "en": "Can you send packages from this parcel locker?" + }, + "mappings": [ + { + "if": "parcel_mail_in=yes", + "then": { + "en": "You can send packages from this parcel locker" + } + }, + { + "if": "parcel_mail_in=no", + "then": { + "en": "You can't send packages from this parcel locker" + } + } + ], + "condition": "amenity=parcel_locker" + }, + { + "id": "pickup", + "question": { + "en": "Can you pick up packages from this parcel locker?" + }, + "mappings": [ + { + "if": "parcel_pickup=yes", + "then": { + "en": "You can pick up packages from this parcel locker" + } + }, + { + "if": "parcel_pickup=no", + "then": { + "en": "You can't pick up packages from this parcel locker" + } + } + ], + "condition": "amenity=parcel_locker" + } + ], + "filter": [ + { + "id": "is_open", + "options": [ + { + "question": { + "en": "Currently open", + "de": "Aktuell geöffnet", + "zh_Hant": "目前開放", + "id": "Saat ini buka", + "hu": "Most nyitva", + "nl": "Momenteel geopend", + "ca": "Actualment obert", + "es": "Actualmente abierta", + "fr": "Ouvert actuellement" + }, + "osmTags": "_isOpen=yes" + } + ] + } + ], "allowMove": { "enableImproveAccuracy": true }, - "deletion": {}, + "deletion": true, "mapRendering": [ { - "icon": "./assets/layers/parcel_lockers/parcel_lockers.svg", + "icon": "circle:white;./assets/layers/parcel_lockers/parcel_lockers.svg", "iconBadges": [ { "if": "opening_hours~*", From 09674f0b2aa2df1d42889eaa99a11c3e41062ddc Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 11 Aug 2022 13:54:05 +0200 Subject: [PATCH 11/13] Change icon --- assets/layers/parcel_lockers/parcel_lockers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/layers/parcel_lockers/parcel_lockers.json b/assets/layers/parcel_lockers/parcel_lockers.json index cac6ad666c..b1e8a8bd7d 100644 --- a/assets/layers/parcel_lockers/parcel_lockers.json +++ b/assets/layers/parcel_lockers/parcel_lockers.json @@ -214,7 +214,7 @@ "deletion": true, "mapRendering": [ { - "icon": "circle:white;./assets/layers/parcel_lockers/parcel_lockers.svg", + "icon": "square:white;./assets/layers/parcel_lockers/parcel_lockers.svg", "iconBadges": [ { "if": "opening_hours~*", From 4b834f7be03e258ddc61d4cbd5e076fbe4f2a24d Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 11 Aug 2022 14:03:46 +0200 Subject: [PATCH 12/13] Regenerate translations --- langs/layers/ca.json | 42 +++++++ langs/layers/de.json | 63 ++++++++++ langs/layers/en.json | 238 ++++++++++++++++++++++++++++++++++++++ langs/layers/es.json | 55 +++++++++ langs/layers/fr.json | 55 +++++++++ langs/layers/hu.json | 55 +++++++++ langs/layers/id.json | 55 +++++++++ langs/layers/nb_NO.json | 28 +++++ langs/layers/nl.json | 74 ++++++++++++ langs/layers/ru.json | 27 +++++ langs/layers/zh_Hant.json | 55 +++++++++ langs/themes/ca.json | 35 ------ langs/themes/de.json | 54 --------- langs/themes/en.json | 184 ++--------------------------- langs/themes/es.json | 46 -------- langs/themes/fr.json | 46 -------- langs/themes/hu.json | 46 -------- langs/themes/id.json | 48 -------- langs/themes/nb_NO.json | 30 ----- langs/themes/nl.json | 51 -------- langs/themes/ru.json | 31 ----- langs/themes/zh_Hant.json | 46 -------- 22 files changed, 759 insertions(+), 605 deletions(-) diff --git a/langs/layers/ca.json b/langs/layers/ca.json index 8cf1643f7e..2164bdb4e3 100644 --- a/langs/layers/ca.json +++ b/langs/layers/ca.json @@ -801,6 +801,17 @@ } } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Actualment obert" + } + } + } + } + }, "parking": { "name": "Aparcament" }, @@ -853,6 +864,37 @@ "render": "Parc infantil" } }, + "postboxes": { + "name": "Bústies", + "presets": { + "0": { + "title": "una bústia" + } + }, + "title": { + "render": "Bústia" + } + }, + "postoffices": { + "filter": { + "0": { + "options": { + "0": { + "question": "Actualment obert" + } + } + } + }, + "name": "Oficines de correus", + "presets": { + "0": { + "title": "una oficina de correus" + } + }, + "title": { + "render": "Oficina de correus" + } + }, "public_bookcase": { "name": "Bústies per llibres", "presets": { diff --git a/langs/layers/de.json b/langs/layers/de.json index 78d09b57a0..6cfb7762f2 100644 --- a/langs/layers/de.json +++ b/langs/layers/de.json @@ -4977,6 +4977,17 @@ } } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Aktuell geöffnet" + } + } + } + } + }, "parking": { "description": "Eine Ebene mit Parkplätzen", "name": "Parkplätze", @@ -5267,6 +5278,58 @@ "render": "Spielplatz" } }, + "postboxes": { + "description": "Die Ebene zeigt Briefkästen.", + "name": "Briefkästen", + "presets": { + "0": { + "title": "ein Briefkasten" + } + }, + "title": { + "render": "Briefkasten" + } + }, + "postoffices": { + "description": "Eine Ebene mit Postämtern.", + "filter": { + "0": { + "options": { + "0": { + "question": "Aktuell geöffnet" + } + } + } + }, + "name": "Poststellen", + "presets": { + "0": { + "title": "eine Poststelle" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "durchgehend geöffnet (auch an Feiertagen)" + } + }, + "question": "Wie sind die Öffnungszeiten dieser Poststelle?", + "render": "Öffnungszeiten: {opening_hours_table()}" + } + }, + "title": { + "mappings": { + "0": { + "then": "Postfiliale im Einzelhandel" + }, + "1": { + "then": "Postfiliale im {name}" + } + }, + "render": "Poststelle" + } + }, "public_bookcase": { "description": "Ein Bücherschrank am Straßenrand mit Büchern, für jedermann zugänglich", "filter": { diff --git a/langs/layers/en.json b/langs/layers/en.json index 50e29227ee..bc04f04397 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -5049,6 +5049,91 @@ } } }, + "parcel_lockers": { + "description": "Layer showing parcel lockers for collecting and sending parcels.", + "filter": { + "0": { + "options": { + "0": { + "question": "Currently open" + } + } + } + }, + "name": "Parcel Lockers", + "presets": { + "0": { + "title": "a parcel locker" + } + }, + "tagRenderings": { + "brand": { + "freeform": { + "placeholder": "Brand" + }, + "mappings": { + "0": { + "then": "This is an Amazon Locker" + }, + "1": { + "then": "This is a DHL Packstation" + }, + "2": { + "then": "This is a DPD Pickup Station" + }, + "3": { + "then": "This is a PostNL Parcel Locker" + } + }, + "question": "What is the brand of the parcel locker?", + "render": "This is a {brand} parcel locker" + }, + "mail-in": { + "mappings": { + "0": { + "then": "You can send packages from this parcel locker" + }, + "1": { + "then": "You can't send packages from this parcel locker" + } + }, + "question": "Can you send packages from this parcel locker?" + }, + "operator": { + "freeform": { + "placeholder": "Operator" + }, + "question": "What is the operator of the parcel locker?", + "render": "This parcel locker is operated by {operator}" + }, + "pickup": { + "mappings": { + "0": { + "then": "You can pick up packages from this parcel locker" + }, + "1": { + "then": "You can't pick up packages from this parcel locker" + } + }, + "question": "Can you pick up packages from this parcel locker?" + }, + "ref": { + "freeform": { + "placeholder": "Reference" + }, + "question": "What is the reference number/identifier of this parcel locker?", + "render": "This parcel locker has the reference {ref}" + } + }, + "title": { + "mappings": { + "0": { + "then": "{brand} parcel locker" + } + }, + "render": "Parcel Locker" + } + }, "parking": { "description": "A layer showing car parkings", "name": "Parking", @@ -5339,6 +5424,159 @@ "render": "Playground" } }, + "postboxes": { + "description": "The layer showing postboxes.", + "name": "Postboxes", + "presets": { + "0": { + "title": "a postbox" + } + }, + "title": { + "render": "Postbox" + } + }, + "postoffices": { + "description": "A layer showing post offices.", + "filter": { + "0": { + "options": { + "0": { + "question": "Currently open" + } + } + } + }, + "name": "Post offices", + "presets": { + "0": { + "title": "a post office" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "24/7 opened (including holidays)" + } + }, + "question": "What are the opening hours for this post office?", + "render": "Opening Hours: {opening_hours_table()}" + }, + "letter-from": { + "mappings": { + "0": { + "then": "You can post letters here" + }, + "1": { + "then": "You can't post letters here" + } + }, + "question": "Can you post a letter here?", + "render": "You can post letters with these companies: {post_office:letter_from}" + }, + "parcel-from": { + "mappings": { + "0": { + "then": "You can send parcels here" + }, + "1": { + "then": "You can't send parcels here" + } + }, + "question": "Can you send a parcel here?", + "render": "You can post parcels with these companies: {post_office:parcel_from}" + }, + "parcel-pickup": { + "mappings": { + "0": { + "then": "You can pick up missed parcels here" + }, + "1": { + "then": "You can't pick up missed parcels here" + } + }, + "question": "Can you pick up missed parcels here?", + "render": "You can pick up parcels from these companies: {post_office:parcel_pickup}" + }, + "parcel-to": { + "mappings": { + "0": { + "then": "You can send parcels to here for pickup" + }, + "1": { + "then": "You can't send parcels to here for pickup" + } + }, + "question": "Can you send parcels to here for pickup?", + "render": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" + }, + "partner-brand": { + "mappings": { + "0": { + "then": "This location offers services for DHL" + }, + "1": { + "then": "This location offers services for DPD" + }, + "2": { + "then": "This location offers services for GLS" + }, + "3": { + "then": "This location offers services for UPS" + }, + "4": { + "then": "This location is a DHL Paketshop" + }, + "5": { + "then": "This location is a Hermes PaketShop" + }, + "6": { + "then": "This location is a PostNL-point" + }, + "7": { + "then": "This location offers services for bpost" + } + }, + "question": "For which brand does this location offer services?", + "render": "This location offers services for {post_office:brand}" + }, + "post_partner": { + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } + }, + "question": "Is this a post partner?" + }, + "stamps": { + "mappings": { + "0": { + "then": "You can buy stamps here" + }, + "1": { + "then": "You can't buy stamps here" + } + }, + "question": "Can you buy stamps here?", + "render": "You can buy stamps from companies: {post_office:stamps}" + } + }, + "title": { + "mappings": { + "0": { + "then": "Post partner at a shop" + }, + "1": { + "then": "Post partner at {name}" + } + }, + "render": "Post Office" + } + }, "public_bookcase": { "description": "A streetside cabinet with books, accessible to anyone", "filter": { diff --git a/langs/layers/es.json b/langs/layers/es.json index 9f45a974af..2f909769b4 100644 --- a/langs/layers/es.json +++ b/langs/layers/es.json @@ -3000,6 +3000,17 @@ } } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Actualmente abierta" + } + } + } + } + }, "parking": { "description": "Una capa que muestra aparcamientos para coches", "name": "Aparcamiento", @@ -3125,6 +3136,50 @@ } } }, + "postboxes": { + "description": "La capa que muestra buzones de correo.", + "name": "Buzones de correo", + "presets": { + "0": { + "title": "un buzón de correo" + } + }, + "title": { + "render": "Buzón de correo" + } + }, + "postoffices": { + "description": "Una capa que muestra oficinas de correo.", + "filter": { + "0": { + "options": { + "0": { + "question": "Actualmente abierta" + } + } + } + }, + "name": "Oficinas de correo", + "presets": { + "0": { + "title": "una oficina de correo" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "Abierta 24/7 (incluyendo festivos)" + } + }, + "question": "¿Cuáles son las horas de apertura para esta oficina de correos?", + "render": "Horas de Apertura: {opening_hours_table()}" + } + }, + "title": { + "render": "Oficina de Correo" + } + }, "public_bookcase": { "filter": { "2": { diff --git a/langs/layers/fr.json b/langs/layers/fr.json index 78753c279b..53b345cac3 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -3149,6 +3149,17 @@ } } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Ouvert actuellement" + } + } + } + } + }, "parking": { "description": "Un calque montrant les parkings", "name": "Lieu de stationnement", @@ -3375,6 +3386,50 @@ "render": "Aire de jeu" } }, + "postboxes": { + "description": "Le calque montrant les boîtes à lettres.", + "name": "Boîtes à lettres", + "presets": { + "0": { + "title": "une boîte à lettres" + } + }, + "title": { + "render": "Boîte à lettres" + } + }, + "postoffices": { + "description": "Un claque montrant les bureaux de poste.", + "filter": { + "0": { + "options": { + "0": { + "question": "Ouvert actuellement" + } + } + } + }, + "name": "Bureaux de poste", + "presets": { + "0": { + "title": "un bureau de poste" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "Ouvert 24h/24 (jours fériés compris)" + } + }, + "question": "Quelles sont les heures d’ouverture de ce bureau de poste ?", + "render": "Heures d’ouverture : {opening_hours_table()}" + } + }, + "title": { + "render": "Bureau de poste" + } + }, "public_bookcase": { "description": "Une armoire ou une boite contenant des livres en libre accès", "name": "Microbibliothèque", diff --git a/langs/layers/hu.json b/langs/layers/hu.json index 1e00fef507..c22c1e3847 100644 --- a/langs/layers/hu.json +++ b/langs/layers/hu.json @@ -607,6 +607,61 @@ "render": "Hackerspace" } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Most nyitva" + } + } + } + } + }, + "postboxes": { + "description": "A postaládákat megjelenítő réteg.", + "name": "Postaládák", + "presets": { + "0": { + "title": "postaláda" + } + }, + "title": { + "render": "Postaláda" + } + }, + "postoffices": { + "description": "Postákat megjelenítő réteg.", + "filter": { + "0": { + "options": { + "0": { + "question": "Most nyitva" + } + } + } + }, + "name": "Posták", + "presets": { + "0": { + "title": "Posta" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "Éjjel-nappal nyitva (munkaszüneti napokon is)" + } + }, + "question": "Mikor van nyitva ez a posta?", + "render": "Nyitva tartás: {opening_hours_table()}" + } + }, + "title": { + "render": "Posta" + } + }, "public_bookcase": { "description": "Egy utcai szekrény könyvekkel, amelyet bárki használhat", "filter": { diff --git a/langs/layers/id.json b/langs/layers/id.json index 05147e9de0..eb67534e12 100644 --- a/langs/layers/id.json +++ b/langs/layers/id.json @@ -356,6 +356,17 @@ } } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Saat ini buka" + } + } + } + } + }, "playground": { "tagRenderings": { "playground-email": { @@ -366,6 +377,50 @@ } } }, + "postboxes": { + "description": "Layer yang memperlihatkan kotak pos.", + "name": "Kotak pos", + "presets": { + "0": { + "title": "kotak pos" + } + }, + "title": { + "render": "Kotak pos" + } + }, + "postoffices": { + "description": "Layer yang menunjukkan kantor pos.", + "filter": { + "0": { + "options": { + "0": { + "question": "Saat ini buka" + } + } + } + }, + "name": "Kantor pos", + "presets": { + "0": { + "title": "Kantor Pos" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "Buka 24 jam (termasuk hari libur)" + } + }, + "question": "Jam berapa kantor pos ini buka?", + "render": "Jam Buka: {opening_hours_table()}" + } + }, + "title": { + "render": "Kantor Pos" + } + }, "tree_node": { "presets": { "2": { diff --git a/langs/layers/nb_NO.json b/langs/layers/nb_NO.json index 5b9eb9320d..2d07f6cd48 100644 --- a/langs/layers/nb_NO.json +++ b/langs/layers/nb_NO.json @@ -341,6 +341,34 @@ "render": "Brannhydrant" } }, + "postboxes": { + "name": "Postbokser", + "title": { + "render": "Postboks" + } + }, + "postoffices": { + "description": "Et lag som viser postkontor.", + "name": "Postkontor", + "presets": { + "0": { + "title": "et postkontor" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "Døgnåpent (inkludert helligdager)" + } + }, + "render": "Åpningstider: {opening_hours_table()}" + } + }, + "title": { + "render": "Postkontor" + } + }, "windturbine": { "units": { "0": { diff --git a/langs/layers/nl.json b/langs/layers/nl.json index df5ba4b817..221bbfa120 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -4757,6 +4757,31 @@ } } }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "Momenteel geopend" + } + } + } + }, + "presets": { + "0": { + "title": "een pakketautomaat" + } + }, + "tagRenderings": { + "brand": { + "mappings": { + "3": { + "then": "Dit is een PostNL pakketautomaat" + } + } + } + } + }, "parking": { "description": "Deze laag toont autoparkings", "name": "Parking", @@ -5062,6 +5087,55 @@ "render": "Speeltuin" } }, + "postboxes": { + "description": "Deze laag toont brievenbussen.", + "name": "Brievenbussen", + "presets": { + "0": { + "title": "een brievenbus" + } + }, + "title": { + "render": "Brievenbus" + } + }, + "postoffices": { + "description": "Een laag die postkantoren toont.", + "filter": { + "0": { + "options": { + "0": { + "question": "Momenteel geopend" + } + } + } + }, + "name": "Postkantoren", + "presets": { + "0": { + "title": "een postkantoor" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "24/7 open (ook tijdens feestdagen)" + } + }, + "question": "Wat zijn de openingsuren voor dit postkantoor?", + "render": "Openingsuren: {opening_hours_table()}" + } + }, + "title": { + "mappings": { + "0": { + "then": "Postpartner in een winkel" + } + }, + "render": "Postkantoor" + } + }, "public_bookcase": { "description": "Een straatkastje met boeken voor iedereen", "filter": { diff --git a/langs/layers/ru.json b/langs/layers/ru.json index 163beb679f..1fd003510b 100644 --- a/langs/layers/ru.json +++ b/langs/layers/ru.json @@ -1263,6 +1263,33 @@ "render": "Детская площадка" } }, + "postboxes": { + "name": "Почтовые ящики", + "presets": { + "0": { + "title": "почтовый ящик" + } + }, + "title": { + "render": "Почтовый ящик" + } + }, + "postoffices": { + "name": "Почтовые отделения", + "presets": { + "0": { + "title": "Почтовое отделение" + } + }, + "tagRenderings": { + "OH": { + "render": "Часы работы: {opening_hours_table()}" + } + }, + "title": { + "render": "Почтовое отделение" + } + }, "public_bookcase": { "description": "Уличный шкаф с книгами, доступными для всех", "name": "Книжные шкафы", diff --git a/langs/layers/zh_Hant.json b/langs/layers/zh_Hant.json index f9a2f96070..f5c9071129 100644 --- a/langs/layers/zh_Hant.json +++ b/langs/layers/zh_Hant.json @@ -562,6 +562,61 @@ "description": "顯示消防栓的地圖圖層。", "name": "消防栓地圖" }, + "parcel_lockers": { + "filter": { + "0": { + "options": { + "0": { + "question": "目前開放" + } + } + } + } + }, + "postboxes": { + "description": "這圖層顯示郵筒。", + "name": "郵筒", + "presets": { + "0": { + "title": "郵筒" + } + }, + "title": { + "render": "郵筒" + } + }, + "postoffices": { + "description": "圖層顯示郵局。", + "filter": { + "0": { + "options": { + "0": { + "question": "目前開放" + } + } + } + }, + "name": "郵局", + "presets": { + "0": { + "title": "郵局" + } + }, + "tagRenderings": { + "OH": { + "mappings": { + "0": { + "then": "24/7 開放 (包括假日)" + } + }, + "question": "這間郵局的開放時間是?", + "render": "開放時間:{opening_hours_table()}" + } + }, + "title": { + "render": "郵局" + } + }, "windturbine": { "name": "風機", "presets": { diff --git a/langs/themes/ca.json b/langs/themes/ca.json index 5d76fd9dcc..7a5ea1800d 100644 --- a/langs/themes/ca.json +++ b/langs/themes/ca.json @@ -419,41 +419,6 @@ "shortDescription": "Codis postals", "title": "Codis postals" }, - "postboxes": { - "layers": { - "0": { - "name": "Bústies", - "presets": { - "0": { - "title": "una bústia" - } - }, - "title": { - "render": "Bústia" - } - }, - "1": { - "filter": { - "0": { - "options": { - "0": { - "question": "Actualment obert" - } - } - } - }, - "name": "Oficines de correus", - "presets": { - "0": { - "title": "una oficina de correus" - } - }, - "title": { - "render": "Oficina de correus" - } - } - } - }, "shops": { "title": "Open Shop Map" }, diff --git a/langs/themes/de.json b/langs/themes/de.json index 46d6d3b6b6..7408fa49bc 100644 --- a/langs/themes/de.json +++ b/langs/themes/de.json @@ -888,60 +888,6 @@ }, "postboxes": { "description": "Auf dieser Karte können Sie Daten von Poststellen und Briefkästen finden und ergänzen. Sie können diese Karte nutzen, um herauszufinden, wo Sie Ihre nächste Postkarte versenden können :)
Haben Sie einen Fehler entdeckt oder fehlt ein Briefkasten? Sie können die Kartenddaten mit einem kostenlosen OpenStreetMap-Konto bearbeiten. ", - "layers": { - "0": { - "description": "Die Ebene zeigt Briefkästen.", - "name": "Briefkästen", - "presets": { - "0": { - "title": "ein Briefkasten" - } - }, - "title": { - "render": "Briefkasten" - } - }, - "1": { - "description": "Eine Ebene mit Postämtern.", - "filter": { - "0": { - "options": { - "0": { - "question": "Aktuell geöffnet" - } - } - } - }, - "name": "Poststellen", - "presets": { - "0": { - "title": "eine Poststelle" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "durchgehend geöffnet (auch an Feiertagen)" - } - }, - "question": "Wie sind die Öffnungszeiten dieser Poststelle?", - "render": "Öffnungszeiten: {opening_hours_table()}" - } - }, - "title": { - "mappings": { - "0": { - "then": "Postfiliale im Einzelhandel" - }, - "1": { - "then": "Postfiliale im {name}" - } - }, - "render": "Poststelle" - } - } - }, "shortDescription": "Eine Karte die Briefkästen und Poststellen anzeigt", "title": "Post- und Briefkastenkarte" }, diff --git a/langs/themes/en.json b/langs/themes/en.json index c3366fa9ec..f12db62b57 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -889,182 +889,22 @@ "postboxes": { "description": "On this map you can find and add data of post offices and post boxes. You can use this map to find where you can mail your next postcard! :)
Spotted an error or is a post box missing? You can edit this map with a free OpenStreetMap account. ", "layers": { - "0": { - "description": "The layer showing postboxes.", - "name": "Postboxes", - "presets": { - "0": { - "title": "a postbox" - } - }, - "title": { - "render": "Postbox" - } - }, - "1": { - "description": "A layer showing post offices.", - "filter": { - "0": { - "options": { - "0": { - "question": "Currently open" - } - } - } - }, - "name": "Post offices", - "presets": { - "0": { - "title": "a post office" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "24/7 opened (including holidays)" - } - }, - "question": "What are the opening hours for this post office?", - "render": "Opening Hours: {opening_hours_table()}" - }, - "letter-from": { - "mappings": { - "0": { - "then": "You can post letters here" - }, - "1": { - "then": "You can't post letters here" - } - }, - "question": "Can you post a letter here?", - "render": "You can post letters with these companies: {post_office:letter_from}" - }, - "parcel-from": { - "mappings": { - "0": { - "then": "You can send parcels here" - }, - "1": { - "then": "You can't send parcels here" - } - }, - "question": "Can you send a parcel here?", - "render": "You can post parcels with these companies: {post_office:parcel_from}" - }, - "parcel-pickup": { - "mappings": { - "0": { - "then": "You can pick up missed parcels here" - }, - "1": { - "then": "You can't pick up missed parcels here" - } - }, - "question": "Can you pick up missed parcels here?", - "render": "You can pick up parcels from these companies: {post_office:parcel_pickup}" - }, - "parcel-to": { - "mappings": { - "0": { - "then": "You can send parcels to here for pickup" - }, - "1": { - "then": "You can't send parcels to here for pickup" - } - }, - "question": "Can you send parcels to here for pickup?", - "render": "You can send parcels to here for pickup with these companies: {post_office:parcel_to}" - }, - "partner-brand": { - "mappings": { - "0": { - "then": "This location offers services for DHL" - }, - "1": { - "then": "This location offers services for DPD" - }, - "2": { - "then": "This location offers services for GLS" - }, - "3": { - "then": "This location offers services for UPS" - }, - "4": { - "then": "This location is a DHL Paketshop" - }, - "5": { - "then": "This location is a Hermes PaketShop" - }, - "6": { - "then": "This location is a PostNL-point" - }, - "7": { - "then": "This location offers services for bpost" - } - }, - "question": "For which brand does this location offer services?", - "render": "This location offers services for {post_office:brand}" - }, - "post_partner": { - "mappings": { - "0": { - "then": "This shop is a post partner" - }, - "1": { - "then": "This shop is not a post partner" - } - }, - "question": "Is this a post partner?" - }, - "stamps": { - "mappings": { - "0": { - "then": "You can buy stamps here" - }, - "1": { - "then": "You can't buy stamps here" - } - }, - "question": "Can you buy stamps here?", - "render": "You can buy stamps from companies: {post_office:stamps}" - } - }, - "title": { - "mappings": { + "3": { + "override": { + "+tagRenderings": { "0": { - "then": "Post partner at a shop" - }, - "1": { - "then": "Post partner at {name}" - } - }, - "render": "Post Office" - } - }, - "2": { - "description": "Add a new post partner to the map in an existing shop", - "name": "Shops", - "tagRenderings": { - "post_partner": { - "mappings": { - "0": { - "then": "This shop is a post partner" + "mappings": { + "0": { + "then": "This shop is a post partner" + }, + "1": { + "then": "This shop is not a post partner" + } }, - "1": { - "then": "This shop is not a post partner" - } - }, - "question": "Is this shop a post partner?" - } - }, - "title": { - "mappings": { - "0": { - "then": "{name}" + "question": "Is this shop a post partner?" } }, - "render": "Shop" + "description": "Add a new post partner to the map in an existing shop" } } }, diff --git a/langs/themes/es.json b/langs/themes/es.json index 8bdf326551..dbafd095b4 100644 --- a/langs/themes/es.json +++ b/langs/themes/es.json @@ -549,52 +549,6 @@ }, "postboxes": { "description": "En este mapa puedes encontrar y añadir datos de oficinas de correo y buzones de correo. ¡Puedes utilizar este mapa para encontrar donde puedes enviar tu próxima postal! :)
¿Has encontrado un error o algo que falta? Puedes editar este mapa con una cuenta de OpenStreetMap gratuíta. ", - "layers": { - "0": { - "description": "La capa que muestra buzones de correo.", - "name": "Buzones de correo", - "presets": { - "0": { - "title": "un buzón de correo" - } - }, - "title": { - "render": "Buzón de correo" - } - }, - "1": { - "description": "Una capa que muestra oficinas de correo.", - "filter": { - "0": { - "options": { - "0": { - "question": "Actualmente abierta" - } - } - } - }, - "name": "Oficinas de correo", - "presets": { - "0": { - "title": "una oficina de correo" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "Abierta 24/7 (incluyendo festivos)" - } - }, - "question": "¿Cuáles son las horas de apertura para esta oficina de correos?", - "render": "Horas de Apertura: {opening_hours_table()}" - } - }, - "title": { - "render": "Oficina de Correo" - } - } - }, "shortDescription": "Un mapa que muestra buzones y oficinas de correo" }, "shops": { diff --git a/langs/themes/fr.json b/langs/themes/fr.json index ebad670047..db3beace12 100644 --- a/langs/themes/fr.json +++ b/langs/themes/fr.json @@ -888,52 +888,6 @@ }, "postboxes": { "description": "Trouvez et ajoutez des bureaux de poste et boîtes à lettres sur cette carte. Utilisez cette carte où vous pouvez envoyer vos cartes postales ! :)
Vous avez trouvez une erreur ou une boîte à lettres est manquante ? Vous pouvez modifier cette carte avec un compte OpenStreetMap gratuit. ", - "layers": { - "0": { - "description": "Le calque montrant les boîtes à lettres.", - "name": "Boîtes à lettres", - "presets": { - "0": { - "title": "une boîte à lettres" - } - }, - "title": { - "render": "Boîte à lettres" - } - }, - "1": { - "description": "Un claque montrant les bureaux de poste.", - "filter": { - "0": { - "options": { - "0": { - "question": "Ouvert actuellement" - } - } - } - }, - "name": "Bureaux de poste", - "presets": { - "0": { - "title": "un bureau de poste" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "Ouvert 24h/24 (jours fériés compris)" - } - }, - "question": "Quelles sont les heures d’ouverture de ce bureau de poste ?", - "render": "Heures d’ouverture : {opening_hours_table()}" - } - }, - "title": { - "render": "Bureau de poste" - } - } - }, "shortDescription": "Une carte des bureaux de poste et des boîtes à lettres", "title": "Carte des Bureaux de Poste et Boîtes à Lettres" }, diff --git a/langs/themes/hu.json b/langs/themes/hu.json index 964fde035e..a4f0c96533 100644 --- a/langs/themes/hu.json +++ b/langs/themes/hu.json @@ -345,52 +345,6 @@ }, "postboxes": { "description": "Ezen a térképen postahivatalok és postaládák adatait találod és egészítheted ki. Utánanézhetsz, hogy hol adhatod fel a következő képeslapodat! :)
Hibát találtál, vagy hiányzik egy postaláda? Ezt a térképet mindössze egy ingyenes OpenStreetMap-fiókkal szerkesztheted. ", - "layers": { - "0": { - "description": "A postaládákat megjelenítő réteg.", - "name": "Postaládák", - "presets": { - "0": { - "title": "postaláda" - } - }, - "title": { - "render": "Postaláda" - } - }, - "1": { - "description": "Postákat megjelenítő réteg.", - "filter": { - "0": { - "options": { - "0": { - "question": "Most nyitva" - } - } - } - }, - "name": "Posták", - "presets": { - "0": { - "title": "Posta" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "Éjjel-nappal nyitva (munkaszüneti napokon is)" - } - }, - "question": "Mikor van nyitva ez a posta?", - "render": "Nyitva tartás: {opening_hours_table()}" - } - }, - "title": { - "render": "Posta" - } - } - }, "shortDescription": "Posták és postaládák térképe", "title": "Posta- és postaládatérkép" }, diff --git a/langs/themes/id.json b/langs/themes/id.json index addb208509..abc60c194f 100644 --- a/langs/themes/id.json +++ b/langs/themes/id.json @@ -148,54 +148,6 @@ "shortDescription": "Kode pos", "title": "Kode pos" }, - "postboxes": { - "layers": { - "0": { - "description": "Layer yang memperlihatkan kotak pos.", - "name": "Kotak pos", - "presets": { - "0": { - "title": "kotak pos" - } - }, - "title": { - "render": "Kotak pos" - } - }, - "1": { - "description": "Layer yang menunjukkan kantor pos.", - "filter": { - "0": { - "options": { - "0": { - "question": "Saat ini buka" - } - } - } - }, - "name": "Kantor pos", - "presets": { - "0": { - "title": "Kantor Pos" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "Buka 24 jam (termasuk hari libur)" - } - }, - "question": "Jam berapa kantor pos ini buka?", - "render": "Jam Buka: {opening_hours_table()}" - } - }, - "title": { - "render": "Kantor Pos" - } - } - } - }, "trees": { "title": "Pohon" }, diff --git a/langs/themes/nb_NO.json b/langs/themes/nb_NO.json index c1f49dafc1..a48b38175f 100644 --- a/langs/themes/nb_NO.json +++ b/langs/themes/nb_NO.json @@ -443,36 +443,6 @@ "title": "Postkoder" }, "postboxes": { - "layers": { - "0": { - "name": "Postbokser", - "title": { - "render": "Postboks" - } - }, - "1": { - "description": "Et lag som viser postkontor.", - "name": "Postkontor", - "presets": { - "0": { - "title": "et postkontor" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "Døgnåpent (inkludert helligdager)" - } - }, - "render": "Åpningstider: {opening_hours_table()}" - } - }, - "title": { - "render": "Postkontor" - } - } - }, "shortDescription": "Postbokser og postkontor", "title": "Postboks og postkontor-kart" }, diff --git a/langs/themes/nl.json b/langs/themes/nl.json index d8f6073cc3..3e6c0b505c 100644 --- a/langs/themes/nl.json +++ b/langs/themes/nl.json @@ -931,57 +931,6 @@ }, "postboxes": { "description": "Op deze kaart kan je informatie over brievenbussen en postkantoren vinden en toevoegen. Je kan deze kaart gebruiken om te achterhalen waar je je volgende postkaart naar kan sturen! :)
Zie je een fout of ontbreekt een brievenbus? Dan kan je deze kaart aanpassen met een gratis OpenStreetMap account. ", - "layers": { - "0": { - "description": "Deze laag toont brievenbussen.", - "name": "Brievenbussen", - "presets": { - "0": { - "title": "een brievenbus" - } - }, - "title": { - "render": "Brievenbus" - } - }, - "1": { - "description": "Een laag die postkantoren toont.", - "filter": { - "0": { - "options": { - "0": { - "question": "Momenteel geopend" - } - } - } - }, - "name": "Postkantoren", - "presets": { - "0": { - "title": "een postkantoor" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "24/7 open (ook tijdens feestdagen)" - } - }, - "question": "Wat zijn de openingsuren voor dit postkantoor?", - "render": "Openingsuren: {opening_hours_table()}" - } - }, - "title": { - "mappings": { - "0": { - "then": "Postpartner in een winkel" - } - }, - "render": "Postkantoor" - } - } - }, "shortDescription": "Een kaart die brievenbussen en postkantoren toont", "title": "Brievenbussen en postkantoren" }, diff --git a/langs/themes/ru.json b/langs/themes/ru.json index edb9275b2a..30d3aa4969 100644 --- a/langs/themes/ru.json +++ b/langs/themes/ru.json @@ -341,37 +341,6 @@ "shortDescription": "Карта игровых площадок", "title": "Игровые площадки" }, - "postboxes": { - "layers": { - "0": { - "name": "Почтовые ящики", - "presets": { - "0": { - "title": "почтовый ящик" - } - }, - "title": { - "render": "Почтовый ящик" - } - }, - "1": { - "name": "Почтовые отделения", - "presets": { - "0": { - "title": "Почтовое отделение" - } - }, - "tagRenderings": { - "OH": { - "render": "Часы работы: {opening_hours_table()}" - } - }, - "title": { - "render": "Почтовое отделение" - } - } - } - }, "shops": { "title": "Открыть карту магазинов" }, diff --git a/langs/themes/zh_Hant.json b/langs/themes/zh_Hant.json index dee090b865..2f1b6683e5 100644 --- a/langs/themes/zh_Hant.json +++ b/langs/themes/zh_Hant.json @@ -370,52 +370,6 @@ }, "postboxes": { "description": "在這份地圖你能找到與新增有關郵局與郵筒的資料,你可以用這份地圖找到寄送您下張明信片的地方!:)
發現錯誤或是有郵筒遺漏嗎?你可以用免費的開放街圖帳號來編輯。 ", - "layers": { - "0": { - "description": "這圖層顯示郵筒。", - "name": "郵筒", - "presets": { - "0": { - "title": "郵筒" - } - }, - "title": { - "render": "郵筒" - } - }, - "1": { - "description": "圖層顯示郵局。", - "filter": { - "0": { - "options": { - "0": { - "question": "目前開放" - } - } - } - }, - "name": "郵局", - "presets": { - "0": { - "title": "郵局" - } - }, - "tagRenderings": { - "OH": { - "mappings": { - "0": { - "then": "24/7 開放 (包括假日)" - } - }, - "question": "這間郵局的開放時間是?", - "render": "開放時間:{opening_hours_table()}" - } - }, - "title": { - "render": "郵局" - } - } - }, "shortDescription": "顯示郵筒與郵局的地圖", "title": "郵筒與郵局地圖" }, From 5ccb206b49aff040dd4cf3280fc9b5cfd747a16c Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Tue, 11 Oct 2022 14:22:46 +0200 Subject: [PATCH 13/13] Fix some translations --- langs/layers/ca.json | 13 +------- langs/layers/es.json | 13 +------- langs/layers/fr.json | 13 +------- langs/layers/id.json | 13 +------- langs/themes/en.json | 77 ++++++++++++++++++++++++++++++++------------ 5 files changed, 60 insertions(+), 69 deletions(-) diff --git a/langs/layers/ca.json b/langs/layers/ca.json index f209d25392..83affe79d8 100644 --- a/langs/layers/ca.json +++ b/langs/layers/ca.json @@ -795,17 +795,6 @@ } } }, - "parcel_lockers": { - "filter": { - "0": { - "options": { - "0": { - "question": "Actualment obert" - } - } - } - } - }, "parking": { "name": "Aparcament" }, @@ -1095,4 +1084,4 @@ } } } -} +} \ No newline at end of file diff --git a/langs/layers/es.json b/langs/layers/es.json index 753d85b3a9..09037717ff 100644 --- a/langs/layers/es.json +++ b/langs/layers/es.json @@ -2984,17 +2984,6 @@ } } }, - "parcel_lockers": { - "filter": { - "0": { - "options": { - "0": { - "question": "Actualmente abierta" - } - } - } - } - }, "parking": { "description": "Una capa que muestra aparcamientos para coches", "name": "Aparcamiento", @@ -4037,4 +4026,4 @@ } } } -} +} \ No newline at end of file diff --git a/langs/layers/fr.json b/langs/layers/fr.json index 80e177a2ad..97734a28e5 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -3125,17 +3125,6 @@ } } }, - "parcel_lockers": { - "filter": { - "0": { - "options": { - "0": { - "question": "Ouvert actuellement" - } - } - } - } - }, "parking": { "description": "Un calque montrant les parkings", "name": "Lieu de stationnement", @@ -4473,4 +4462,4 @@ } } } -} +} \ No newline at end of file diff --git a/langs/layers/id.json b/langs/layers/id.json index e3ab5a9ac5..9703a6714a 100644 --- a/langs/layers/id.json +++ b/langs/layers/id.json @@ -363,17 +363,6 @@ } } }, - "parcel_lockers": { - "filter": { - "0": { - "options": { - "0": { - "question": "Saat ini buka" - } - } - } - } - }, "playground": { "tagRenderings": { "playground-email": { @@ -676,4 +665,4 @@ } } } -} +} \ No newline at end of file diff --git a/langs/themes/en.json b/langs/themes/en.json index 5764c1cff9..69248636fe 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -7,6 +7,56 @@ "description": "An open map of statues, busts, graffitis and other artwork all over the world", "title": "Open Artwork Map" }, + "bag": { + "description": "This theme helps with importing data from BAG", + "layers": { + "0": { + "tagRenderings": { + "Reference": { + "mappings": { + "0": { + "then": "This building has no reference in the BAG" + } + }, + "render": "The reference in BAG is {ref:bag}" + } + } + }, + "2": { + "description": "Buildings from BAG register", + "tagRenderings": { + "Build year": { + "mappings": { + "0": { + "then": "The building was started in {_bag_obj:start_date}" + } + }, + "render": "This building was built in {_bag_obj:start_date}" + }, + "Building type": { + "mappings": { + "0": { + "then": "The building type will be a {_bag_obj:construction}" + } + }, + "render": "The building type is a {_bag_obj:building}" + }, + "Import button": { + "mappings": { + "0": { + "then": "Didn't calculate the correct values yet. Refresh this page" + } + } + }, + "Reference": { + "render": "The reference in BAG is {_bag_obj:ref:bag}" + } + } + } + }, + "shortDescription": "BAG import helper tool", + "title": "BAG import helper" + }, "benches": { "description": "This map shows all benches that are recorded in OpenStreetMap: Individual benches, and benches belonging to public transport stops or shelters. With an OpenStreetMap account, you can map new benches or edit details of existing benches.", "shortDescription": "A map of benches", @@ -856,6 +906,11 @@ "description": "A map for showing and editing wind turbines.", "title": "OpenWindPowerMap" }, + "osm_community_index": { + "description": "A list of resources for users of OpenStreetMap. 'Resources' can be links to forums, meetups, Slack groups, IRC channels, mailing lists, and so on. Anything that mappers, especially beginners, might find interesting or helpful.", + "shortDescription": "An index of community resources for OpenStreetMap.", + "title": "OSM Community Index" + }, "parkings": { "description": "This map shows different parking spots", "shortDescription": "This map shows different parking spots", @@ -925,26 +980,6 @@ }, "postboxes": { "description": "On this map you can find and add data of post offices and post boxes. You can use this map to find where you can mail your next postcard! :)
Spotted an error or is a post box missing? You can edit this map with a free OpenStreetMap account. ", - "layers": { - "3": { - "override": { - "+tagRenderings": { - "0": { - "mappings": { - "0": { - "then": "This shop is a post partner" - }, - "1": { - "then": "This shop is not a post partner" - } - }, - "question": "Is this shop a post partner?" - } - }, - "description": "Add a new post partner to the map in an existing shop" - } - } - }, "shortDescription": "A map showing postboxes and post offices", "title": "Postbox and Post Office Map" }, @@ -1090,4 +1125,4 @@ "shortDescription": "A map with waste baskets", "title": "Waste Basket" } -} +} \ No newline at end of file