diff --git a/assets/layers/parcel_lockers/license_info.json b/assets/layers/parcel_lockers/license_info.json new file mode 100644 index 000000000..03368e831 --- /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 000000000..526e4a55a --- /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 000000000..d3c7781ba --- /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 000000000..8e151d9e0 --- /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 000000000..ee81709d4 --- /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 0c50f7040..252ecfe66 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 000000000..7cc67a30a --- /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 eeb934ac2..afc77a95b 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -285,7 +285,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 95045bbed..a144cdb06 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,273 +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", - "nl": "Brievenbus", - "ca": "Bústia", - "es": "Buzón de correo", - "nb_NO": "Postboks", - "fr": "Boîte à lettres" - } - }, - "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": "amenity=post_office" - }, - "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" - } - }, - "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" - } - ], - "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" + "+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" + } }, - "osmTags": "_isOpen=yes" - } - ] - } - ], - "mapRendering": [ - { - "icon": { - "render": "square:white;./assets/themes/postboxes/post_office.svg" - }, - "iconBadges": [ - { - "if": "opening_hours~*", - "then": "isOpen" - } - ], - "iconSize": { - "render": "40,40,bottom" - }, - "location": [ - "point", - "centroid" - ] - }, - { - "color": { - "render": "#DADADA" - }, - "width": { - "render": "1" + { + "if": "post_office=", + "then": { + "en": "This shop is not a post partner" + } + } + ] } - } - ] + ], + "shownByDefault": false + } } ] } \ No newline at end of file