From b9aa1435ccd1ac429e191b695f5c2dea65b5691e Mon Sep 17 00:00:00 2001 From: pgm-chardelv1 Date: Wed, 7 Jul 2021 19:59:56 +0200 Subject: [PATCH] Adds conditional render of carriage width question --- assets/themes/cycle_infra/cycle_infra.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/themes/cycle_infra/cycle_infra.json b/assets/themes/cycle_infra/cycle_infra.json index 020ce5c28d..63ac9aec15 100644 --- a/assets/themes/cycle_infra/cycle_infra.json +++ b/assets/themes/cycle_infra/cycle_infra.json @@ -321,13 +321,20 @@ } }, { + "condition": { + "or": [ + "cycleway=shared_lane", + "cycleway=" + ] + }, "render": { "en": "The carriage width of this road is {width:carriageway}m", "nl": "De breedte van deze rijbaan in deze straat is {width:carriageway}m" }, "freeform": { "key": "width:carriageway", - "addExtraTags": [] + "addExtraTags": [], + "type": "pfloat" }, "question": { "en": "What is the carriage width of this road (in meters)?",