forked from MapComplete/MapComplete
Performance: Remove 'AllKnownLayouts' as much as possible
This commit is contained in:
parent
0e4cce59ea
commit
0f60977b6d
7 changed files with 27 additions and 64 deletions
|
@ -49,14 +49,4 @@ export class AllKnownLayoutsLazy {
|
|||
|
||||
export class AllKnownLayouts {
|
||||
public static allKnownLayouts: AllKnownLayoutsLazy = new AllKnownLayoutsLazy()
|
||||
|
||||
static AllPublicLayers() {
|
||||
const layers = [].concat(
|
||||
...this.allKnownLayouts
|
||||
.values()
|
||||
.filter((layout) => !layout.hideFromOverview)
|
||||
.map((layout) => layout.layers)
|
||||
)
|
||||
return layers
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue