From 2b6598b1cb376308e106b871e02896cdba94fa97 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Thu, 30 Jun 2022 13:06:48 +0200 Subject: [PATCH] Added filters to kerb layer --- assets/layers/kerbs/kerbs.json | 76 ++++++++++++++++++++++++++++++++++ langs/layers/en.json | 40 ++++++++++++++++++ langs/layers/nl.json | 24 +++++++++++ 3 files changed, 140 insertions(+) diff --git a/assets/layers/kerbs/kerbs.json b/assets/layers/kerbs/kerbs.json index a255e83a08..9d5a8bd8c2 100644 --- a/assets/layers/kerbs/kerbs.json +++ b/assets/layers/kerbs/kerbs.json @@ -166,5 +166,81 @@ ] } } + ], + "filter": [ + { + "id": "kerb-type", + "options": [ + { + "question": { + "en": "All types of kerbs", + "nl": "Alle typen stoepranden" + } + }, + { + "osmTags": "kerb=raised", + "question": { + "en": "Raised kerb (>3 cm)", + "nl": "Hoge stoeprand (>3 cm)" + } + }, + { + "osmTags": "kerb=lowered", + "question": { + "en": "Lowered kerb (~3 cm)", + "nl": "Verlaagde stoeprand (~3 cm)" + } + }, + { + "osmTags": "kerb=flush", + "question": { + "en": "Flush kerb (~0cm)", + "nl": "Vlakke stoeprand (~0cm)" + } + }, + { + "osmTags": "kerb=no", + "question": { + "en": "No kerb", + "nl": "Geen stoeprand" + } + }, + { + "osmTags": "kerb=", + "question": { + "en": "Kerb with unknown height", + "nl": "Stoeprand met onbekende hoogte" + } + } + ] + }, + { + "id": "tactile-paving", + "options": [ + { + "question": { + "en": "Kerbs with or without tactile paving" + } + }, + { + "osmTags": "tactile_paving=yes", + "question": { + "en": "Kerb with tactile paving" + } + }, + { + "osmTags": "tactile_paving=no", + "question": { + "en": "Kerb without tactile paving" + } + }, + { + "osmTags": "tactile_paving=", + "question": { + "en": "Kerb wihout information about tactile paving" + } + } + ] + } ] } \ No newline at end of file diff --git a/langs/layers/en.json b/langs/layers/en.json index 5c1bc31c2d..536129307e 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -4069,6 +4069,46 @@ }, "kerbs": { "description": "A layer showing kerbs.", + "filter": { + "0": { + "options": { + "0": { + "question": "All types of kerbs" + }, + "1": { + "question": "Raised kerb (>3 cm)" + }, + "2": { + "question": "Lowered kerb (~3 cm)" + }, + "3": { + "question": "Flush kerb (~0cm)" + }, + "4": { + "question": "No kerb" + }, + "5": { + "question": "Kerb with unknown height" + } + } + }, + "1": { + "options": { + "0": { + "question": "Kerbs with or without tactile paving" + }, + "1": { + "question": "Kerb with tactile paving" + }, + "2": { + "question": "Kerb without tactile paving" + }, + "3": { + "question": "Kerb wihout information about tactile paving" + } + } + } + }, "name": "Kerbs", "presets": { "0": { diff --git a/langs/layers/nl.json b/langs/layers/nl.json index 9224f00e75..0d22edb34a 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -3998,6 +3998,30 @@ }, "kerbs": { "description": "Een laag met stoepranden.", + "filter": { + "0": { + "options": { + "0": { + "question": "Alle typen stoepranden" + }, + "1": { + "question": "Hoge stoeprand (>3 cm)" + }, + "2": { + "question": "Verlaagde stoeprand (~3 cm)" + }, + "3": { + "question": "Vlakke stoeprand (~0cm)" + }, + "4": { + "question": "Geen stoeprand" + }, + "5": { + "question": "Stoeprand met onbekende hoogte" + } + } + } + }, "name": "Stoepranden", "presets": { "0": {