From 8354dfa7d6847cc64cefb127a45633640635b372 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Fri, 21 Feb 2025 00:28:46 +0100 Subject: [PATCH] Add tactile_paving=contrasted (#1147) and color --- assets/layers/kerbs/kerbs.json | 60 +++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/assets/layers/kerbs/kerbs.json b/assets/layers/kerbs/kerbs.json index fbf1cbdb8c..7552ec650f 100644 --- a/assets/layers/kerbs/kerbs.json +++ b/assets/layers/kerbs/kerbs.json @@ -258,6 +258,14 @@ "es": "Este bordillo no tiene pavimento táctil." } }, + { + "if": "tactile_paving=contrasted", + "then": { + "en": "This kerb has tactile paving, which has a contrasting colour to the surrounding pavement.", + "nl": "Deze stoeprand heeft voelbare bestrating, die een contrasterende kleur heeft ten opzichte van de omliggende bestrating." + }, + "hideInAnswer": true + }, { "if": "tactile_paving=incorrect", "then": { @@ -276,6 +284,56 @@ ], "condition": "_geometry:type=Point" }, + { + "id": "tactile-paving-colour", + "question": { + "en": "What is the colour of the tactile paving?", + "nl": "Wat is de kleur van de voelbare bestrating?" + }, + "mappings": [ + { + "if": "tactile_paving:colour=yellow", + "then": { + "en": "The tactile paving is yellow.", + "nl": "De voelbare bestrating is geel." + } + }, + { + "if": "tactile_paving:colour=red", + "then": { + "en": "The tactile paving is red.", + "nl": "De voelbare bestrating is rood." + } + }, + { + "if": "tactile_paving:colour=white", + "then": { + "en": "The tactile paving is white.", + "nl": "De voelbare bestrating is wit." + } + }, + { + "if": "tactile_paving:colour=grey", + "then": { + "en": "The tactile paving is grey.", + "nl": "De voelbare bestrating is grijs." + } + } + ], + "freeform": { + "key": "tactile_paving:colour", + "type": "color", + "placeholder": { + "en": "Colour of the tactile paving", + "nl": "Kleur van de voelbare bestrating" + } + }, + "render": { + "en": "The tactile paving is coloured {tactile_paving:colour}.", + "nl": "De voelbare bestrating is {tactile_paving:colour} gekleurd." + }, + "condition": "_geometry:type=Point" + }, { "id": "kerb-height", "question": { @@ -439,4 +497,4 @@ "es": "un bordillo", "ca": "un kerb" } -} +} \ No newline at end of file