Themes: validate that a background layer actually exists, fix current-view button (GRB)
This commit is contained in:
parent
eb6194bf8f
commit
fc483ed547
9 changed files with 62 additions and 29 deletions
|
@ -83,6 +83,15 @@ export class AvailableRasterLayers {
|
|||
})
|
||||
)
|
||||
}
|
||||
|
||||
public static allIds(): Set<string> {
|
||||
const all: string[] = []
|
||||
all.push(...AvailableRasterLayers.globalLayers.map((l) => l.properties.id))
|
||||
all.push(...AvailableRasterLayers.EditorLayerIndex.map((l) => l.properties.id))
|
||||
all.push(this.osmCarto.properties.id)
|
||||
all.push(this.maptilerDefaultLayer.properties.id)
|
||||
return new Set<string>(all)
|
||||
}
|
||||
}
|
||||
|
||||
export class RasterLayerUtils {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue