From d7ddcd1eb20efe405f36435a542852650c8a0353 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 7 Sep 2025 00:59:26 +0200 Subject: [PATCH] Themes: add questions to pipeline --- assets/layers/pipeline/pipeline.json | 102 ++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/assets/layers/pipeline/pipeline.json b/assets/layers/pipeline/pipeline.json index aa623a245..38e73e592 100644 --- a/assets/layers/pipeline/pipeline.json +++ b/assets/layers/pipeline/pipeline.json @@ -46,7 +46,107 @@ } ], "tagRenderings": [ - "images" + "images", + { + "id": "location", + "question": { + "en": "Where is this pipeline located?", + "nl": "Waar is deze pijpleiding gelegen?" + }, + "mappings": [ + { + "if": "location=underground", + "then": { + "en": "This pipeline is located underground.", + "nl": "Deze pijpleiding is ondergronds gelegen." + } + }, + { + "if": "location=overground", + "then": { + "en": "This pipeline is located above ground.", + "nl": "Deze pijpleiding is bovengronds gelegen." + } + }, + { + "if": "location=overhead", + "then": { + "en": "This pipeline is located overhead.", + "nl": "Deze pijpleiding ligt enkele meters boven de grond." + } + }, + { + "if": "location=underwater", + "then": { + "en": "This pipeline is located underwater.", + "nl": "Deze pijpleiding ligt onder water." + } + } + ] + }, + { + "id": "substance", + "question": { + "en": "What substance is transported in this pipeline?", + "nl": "Welke stof wordt in deze pijpleiding getransporteerd?" + }, + "render": { + "en": "This pipeline transports {substance}", + "nl": "Deze pijpleiding transporteert {substance}" + }, + "freeform": { + "key": "substance", + "type": "string", + "placeholder": { + "en": "Substance name", + "nl": "Naam van de stof" + } + }, + "mappings": [ + { + "if": "substance=gas", + "then": { + "en": "This pipeline transports gas.", + "nl": "Deze pijpleiding transporteert gas." + } + }, + { + "if": "substance=oil", + "then": { + "en": "This pipeline transports oil.", + "nl": "Deze pijpleiding transporteert olie." + } + }, + { + "if": "substance=water", + "then": { + "en": "This pipeline transports water.", + "nl": "Deze pijpleiding transporteert water." + } + }, + { + "if": "substance=hot_water", + "then": { + "en": "This pipeline transports hot water.", + "nl": "Deze pijpleiding transporteert heet water." + } + }, + { + "if": "substance=sewage", + "then": { + "en": "This pipeline transports sewage.", + "nl": "Deze pijpleiding transporteert rioolwater." + } + }, + { + "if": "substance=rainwater", + "then": { + "en": "This pipeline transports rainwater.", + "nl": "Deze pijpleiding transporteert regenwater." + } + } + ] + } ], "allowMove": false } \ No newline at end of file