From 721a930d76fcd4fedada4044f1c6b2c6802cd022 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 22 Dec 2023 19:06:20 +0100 Subject: [PATCH] Themes: add filter for vegetable oil to fritures theme --- assets/themes/food/food.json | 5 +++-- assets/themes/fritures/fritures.json | 29 ++++++++++++++++++++++++++-- langs/themes/en.json | 15 ++++++++++++++ 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/assets/themes/food/food.json b/assets/themes/food/food.json index f67168967..f0c9e0b00 100644 --- a/assets/themes/food/food.json +++ b/assets/themes/food/food.json @@ -30,7 +30,8 @@ }, "icon": "./assets/layers/food/restaurant.svg", "layers": [ - "food" + "food", + "ice_cream" ], "widenFactor": 3 -} \ No newline at end of file +} diff --git a/assets/themes/fritures/fritures.json b/assets/themes/fritures/fritures.json index ed43b57a6..27a870c7c 100644 --- a/assets/themes/fritures/fritures.json +++ b/assets/themes/fritures/fritures.json @@ -56,7 +56,32 @@ } ] } - } + }, + "filter+": [ + { + "id": "oil-type", + "options": [ + { + "question": { + "en": "No oil type preference" + } + }, + { + "question": { + "en": "Only show fritures using vegetable oil" + }, + "osmTags": "friture:oil=vegetable" + }, + { + "question": { + "en": "Only show fritures using animal oil" + }, + "osmTags": "friture:oil=animal" + + } + ] + } + ] } }, { @@ -69,4 +94,4 @@ } ], "widenFactor": 3 -} \ No newline at end of file +} diff --git a/langs/themes/en.json b/langs/themes/en.json index 70a64aef9..98c79d180 100644 --- a/langs/themes/en.json +++ b/langs/themes/en.json @@ -781,6 +781,21 @@ "layers": { "0": { "override": { + "filter+": { + "0": { + "options": { + "0": { + "question": "No oil type preference" + }, + "1": { + "question": "Only show fritures using vegetable oil" + }, + "2": { + "question": "Only show fritures using animal oil" + } + } + } + }, "name": "Fries shop" } }