From 8485a4af036945022317f791d4077c75d85859b7 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Wed, 9 Aug 2023 19:41:23 +0200 Subject: [PATCH] Add filters, remove override --- assets/layers/filters/filters.json | 22 +++++++++++++++++++ .../themes/elongated_coin/elongated_coin.json | 20 ++++------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/assets/layers/filters/filters.json b/assets/layers/filters/filters.json index 4b1f6edadd..1f9abce814 100644 --- a/assets/layers/filters/filters.json +++ b/assets/layers/filters/filters.json @@ -55,6 +55,28 @@ } ] }, + { + "id": "accepts_debit_cards", + "options": [ + { + "osmTags": "payment:debit_cards=yes", + "question": { + "en": "Accepts debit cards" + } + } + ] + }, + { + "id": "accepts_credit_cards", + "options": [ + { + "osmTags": "payment:credit_cards=yes", + "question": { + "en": "Accepts credit cards" + } + } + ] + }, { "id": "has_image", "options": [ diff --git a/assets/themes/elongated_coin/elongated_coin.json b/assets/themes/elongated_coin/elongated_coin.json index d1a97f4920..9ad55da16f 100644 --- a/assets/themes/elongated_coin/elongated_coin.json +++ b/assets/themes/elongated_coin/elongated_coin.json @@ -86,21 +86,7 @@ } ] }, - { - "id": "payment", - "builtin": "payment-options-split", - "override": { - "mappings": [ - {}, - {}, - {}, - {}, - { - "hideInAnswer": true - } - ] - } - }, + "payment-options-split", { "id": "coin", "question": { @@ -257,7 +243,9 @@ }, "deletion": true, "filter": [ - "open_now" + "open_now", + "accepts_debit_cards", + "accepts_credit_cards" ] } ],