forked from MapComplete/MapComplete
Add sharedLayers first to 'allPublicLayers' as they are the canonical version
This commit is contained in:
parent
9086713657
commit
eeaee0f074
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,11 @@ export class AllKnownLayouts {
|
||||||
public static AllPublicLayers() {
|
public static AllPublicLayers() {
|
||||||
const allLayers: LayerConfig[] = []
|
const allLayers: LayerConfig[] = []
|
||||||
const seendIds = new Set<string>()
|
const seendIds = new Set<string>()
|
||||||
|
AllKnownLayouts.sharedLayers.forEach((layer, key) => {
|
||||||
|
seendIds.add(key)
|
||||||
|
allLayers.push(layer)
|
||||||
|
})
|
||||||
|
|
||||||
const publicLayouts = AllKnownLayouts.layoutsList.filter(l => !l.hideFromOverview)
|
const publicLayouts = AllKnownLayouts.layoutsList.filter(l => !l.hideFromOverview)
|
||||||
for (const layout of publicLayouts) {
|
for (const layout of publicLayouts) {
|
||||||
if (layout.hideFromOverview) {
|
if (layout.hideFromOverview) {
|
||||||
|
@ -34,6 +39,8 @@ export class AllKnownLayouts {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return allLayers
|
return allLayers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue