From 556876975b153dcb15031cb0b50850e3bd4ad383 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Thu, 20 Jan 2022 20:35:56 +0100
Subject: [PATCH] communication: filter for parcel_locker s

---
 communication.json | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/communication.json b/communication.json
index 5cc675d..db87b5d 100644
--- a/communication.json
+++ b/communication.json
@@ -103,16 +103,7 @@
         },
         "amenity=parcel_locker": {
             "sign": "<i class='fas fa-box'></i>",
-            "zoom": 16
-        },
-        "vending=parcel_pickup": {
-            "sign": "<i class='fas fa-box'></i>",
-            "info_hide": true,
-            "zoom": 16
-        },
-        "vending=parcel_mail_in": {
-            "sign": "<i class='fas fa-box'></i>",
-            "info_hide": true,
+            "query": "(nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];nwr[amenity=parcel_locker];)",
             "zoom": 16
         },
         "office=telecommunication": {
@@ -157,7 +148,7 @@
             "name": "{{ trans('filter:type') }}",
             "show_default": "true",
             "type": "select",
-            "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
+            "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"{% if v.query %}{{ v.query }}{% else %}nwr[{{ k }}]{% endif %}\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
         }
     }
 }