From cb42a4fcc54a44c07ed14d852633a97452272c66 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 9 Mar 2021 11:42:23 +0100 Subject: [PATCH] Fixed broken roaming renderings, fix #216 --- Customizations/JSON/LayoutConfig.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Customizations/JSON/LayoutConfig.ts b/Customizations/JSON/LayoutConfig.ts index 621a819..bf36cf0 100644 --- a/Customizations/JSON/LayoutConfig.ts +++ b/Customizations/JSON/LayoutConfig.ts @@ -103,7 +103,7 @@ export default class LayoutConfig { return new LayerConfig(layer, `${this.id}.layers[${i}]`) }); - // ALl the layers are constructed, let them share tags in piece now! + // ALl the layers are constructed, let them share tags in now! const roaming : {r, source: LayerConfig}[] = [] for (const layer of this.layers) { roaming.push({r: layer.GetRoamingRenderings(), source:layer}); @@ -117,6 +117,17 @@ export default class LayoutConfig { layer.AddRoamingRenderings(r.r); } } + + for(const layer of this.layers) { + layer.AddRoamingRenderings( + { + titleIcons:[], + iconOverlays: [], + tagRenderings: this.roamingRenderings + } + + ); + } this.clustering = { maxZoom: 16,