From 298f29c0edc21238ccc0a0c7981d44bb0c5ec86b Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 27 Jul 2022 10:22:15 +0200 Subject: [PATCH 1/3] Add example on how to remove a tag --- .../Json/QuestionableTagRenderingConfigJson.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson.ts b/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson.ts index 963f67e0a..df83ea3f4 100644 --- a/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson.ts +++ b/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson.ts @@ -102,7 +102,17 @@ export interface MappingConfigJson { /** * If chosen as answer, these tags will be applied as well onto the object. - * Not compatible with multiAnswer + * Not compatible with multiAnswer. + * + * This can be used e.g. to erase other keys which indicate the 'not' value: + *```json + * { + * "if": "crossing:marking=rainbow", + * "then": "This is a rainbow crossing", + * "addExtraTags": "not:crossing:marking=" + * } + * ``` + * */ addExtraTags?: string[] From f542ee18cff81f4a3d8848fe0fb925015cf8aa33 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 27 Jul 2022 14:20:55 +0200 Subject: [PATCH 2/3] Move 'indoors' as first level (so it always renders), add feature passthrough --- assets/themes/onwheels/onwheels.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index f9674b3fb..c7fe1fb1e 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -20,6 +20,14 @@ "widenFactor": 2, "hideFromOverview": false, "layers": [ + { + "builtin": "indoors", + "override": { + "minzoom": 19, + "name": null, + "passAllFeatures": true + } + }, { "builtin": "bike_repair_station", "override": { @@ -333,12 +341,6 @@ ] } }, - { - "builtin": "indoors", - "override": { - "minzoom": 19 - } - }, { "builtin": "current_view", "override": { From 5f70c52c0d5c75a298b67dcb0608b60402aeb0be Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 27 Jul 2022 14:28:50 +0200 Subject: [PATCH 3/3] Toilets.json: hide fee and opening hours question if the toilet is not publicly accessible; fix #971 --- assets/layers/toilet/toilet.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/layers/toilet/toilet.json b/assets/layers/toilet/toilet.json index d698f8fb1..f56cb6849 100644 --- a/assets/layers/toilet/toilet.json +++ b/assets/layers/toilet/toilet.json @@ -154,6 +154,7 @@ }, { "id": "toilets-fee", + "condition": "access!=no", "question": { "en": "Are these toilets free to use?", "de": "Können diese Toiletten kostenlos benutzt werden?", @@ -220,6 +221,7 @@ }, { "id": "Opening-hours", + "condition": "access!=no", "question": { "en": "When are these toilets opened?", "nl": "Wanneer zijn deze toiletten open?",