diff --git a/Customizations/JSON/LayoutConfig.ts b/Customizations/JSON/LayoutConfig.ts index 67396de..ad78762 100644 --- a/Customizations/JSON/LayoutConfig.ts +++ b/Customizations/JSON/LayoutConfig.ts @@ -210,6 +210,14 @@ export default class LayoutConfig { icons.add(this.socialImage) return icons } + + public LayerIndex() : Map{ + const index = new Map(); + for (const layer of this.layers) { + index.set(layer.id, layer) + } + return index; + } /** * Replaces all the relative image-urls with a fixed image url