diff --git a/Customizations/JSON/TagRenderingConfigJson.ts b/Customizations/JSON/TagRenderingConfigJson.ts index 8d612960a..cf36f668b 100644 --- a/Customizations/JSON/TagRenderingConfigJson.ts +++ b/Customizations/JSON/TagRenderingConfigJson.ts @@ -1,11 +1,15 @@ import {AndOrTagConfigJson} from "./TagConfigJson"; +/** + * A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet. + * If the desired tags are missing and a question is defined, a question will be shown instead. + */ export interface TagRenderingConfigJson { /** * Renders this value. Note that "{key}"-parts are substituted by the corresponding values of the element. * If neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value. * - * Note that this is a HTML-interpreted value, so you can add links as e.g. {website} + * Note that this is a HTML-interpreted value, so you can add links as e.g. '{website}' or include images such as `This is of type A
` */ render?: string | any, @@ -139,4 +143,4 @@ export interface TagRenderingConfigJson { * However, it will _only_ be shown if it matches the overpass-tags of the layer it was originally defined in. */ roaming?: boolean -} \ No newline at end of file +} diff --git a/Models/Constants.ts b/Models/Constants.ts index 834d8428c..876960027 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.6.5"; + public static vNumber = "0.6.5c"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/assets/themes/aed/aed.json b/assets/themes/aed/aed.json index ef7e454b3..f15d3a183 100644 --- a/assets/themes/aed/aed.json +++ b/assets/themes/aed/aed.json @@ -125,7 +125,12 @@ "nl": "Toegankelijkheid is {access}", "de": "Zugang ist {access}" }, - "condition": "indoor=yes", + "condition": { + "or": [ + "indoor=yes", + "access~*" + ] + }, "freeform": { "key": "access", "addExtraTags": [ @@ -209,7 +214,10 @@ } }, { - "render": "{defibrillator:location}", + "render": { + "nl": "Meer informatie over de locatie:
{defibrillator:location}", + "en": "Extra information about the location:
{defibrillator:location}" + }, "question": { "en": "Please give some explanation on where the defibrillator can be found", "ca": "Dóna detalls d'on es pot trobar el desfibril·lador", diff --git a/assets/themes/fritures/fritures.json b/assets/themes/fritures/fritures.json index ae64d574c..99cb65921 100644 --- a/assets/themes/fritures/fritures.json +++ b/assets/themes/fritures/fritures.json @@ -223,7 +223,9 @@ } } ] - } + }, + "questions", + "reviews" ], "icon": { "render": "./assets/themes/fritures/fries.svg" @@ -253,4 +255,4 @@ } ], "roamingRenderings": [] -} \ No newline at end of file +}