From 07d39d0f3624115b585f66beb50aa51598bcb56d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 6 Jul 2021 15:32:39 +0200 Subject: [PATCH] Update LayoutConfigJson.ts --- Customizations/JSON/LayoutConfigJson.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Customizations/JSON/LayoutConfigJson.ts b/Customizations/JSON/LayoutConfigJson.ts index 6d079dc94c..ed9d5975e2 100644 --- a/Customizations/JSON/LayoutConfigJson.ts +++ b/Customizations/JSON/LayoutConfigJson.ts @@ -120,7 +120,7 @@ export interface LayoutConfigJson { * * E.g.: if there are two layers defined: * ``` - * "layers"[ + * "layers":[ * {"title": ..., "tagRenderings": [...], "osmSource":{"tags": ...}}, * {"title", ..., "tagRenderings", [...], "osmSource":{"tags" ...}} * ] @@ -132,13 +132,19 @@ export interface LayoutConfigJson { * "osmSource":{"geoJsonSource":"xyz"} * } * then the result will be that all the layers will have these properties applied and result in: - * "layers"[ + * "layers":[ * {"title": ..., "tagRenderings": [...], "osmSource":{"tags": ..., "geoJsonSource":"xyz"}}, * {"title", ..., "tagRenderings", [...], "osmSource":{"tags" ..., "geoJsonSource":"xyz"}} * ] * ``` * - * If the overrideAll contains a list where the keys starts with a plus, the values will be appended (instead of discarding the old list) + * If the overrideAll contains a list where the keys starts with a plus, the values will be appended (instead of discarding the old list), for example + * + * "overrideAll": { + * "+tagRenderings": [ { ... some tagrendering ... }] + * } + * + * In the above scenario, `sometagrendering` will be added at the beginning of the tagrenderings of every layer */ overrideAll?: any;