From 3da3e25980f2098837b8a3d10d1adbb198b4ac85 Mon Sep 17 00:00:00 2001 From: Arno Deceuninck Date: Tue, 6 Jul 2021 15:57:02 +0200 Subject: [PATCH] Surface type basic questions --- assets/themes/cycle_infra/cycle_infra.json | 49 +++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/assets/themes/cycle_infra/cycle_infra.json b/assets/themes/cycle_infra/cycle_infra.json index e0543bf9c..b0df29dc8 100644 --- a/assets/themes/cycle_infra/cycle_infra.json +++ b/assets/themes/cycle_infra/cycle_infra.json @@ -131,5 +131,52 @@ "presets": [] } ], - "roamingRenderings": [] + "overrideAll": { + "+tagRenderings": [ + { + "render": { + "en": "This road is made of {surface}" + }, + "freeform": { + "key": "surface", + "addExtraTags": [] + }, + "mappings": [ + { + "if": "surface=wood", + "then": { + "en": "The street is made of wood" + } + }, + { + "if": "surface=concrete", + "then": { + "en": "This street is made of concrete" + } + }, + { + "if": "surface=cobblestone", + "then": { + "en": "This street is made of concrete" + } + }, + { + "if": "surface=asphalt", + "then": { + "en": "This street is made of asphalt" + } + }, + { + "if": "surface=paved", + "then": { + "en": "This street is paved" + } + } + ], + "question": { + "en": "What is the surface of the street made from?" + } + } + ] + } } \ No newline at end of file