forked from MapComplete/MapComplete
Themes: allow to disable auto filters
This commit is contained in:
parent
c591770eab
commit
b3492930b8
5 changed files with 37 additions and 32 deletions
|
|
@ -7,7 +7,7 @@ export class AllSharedLayers {
|
|||
public static sharedLayers: Map<string, LayerConfig> = AllSharedLayers.getSharedLayers()
|
||||
public static getSharedLayersConfigs(): Map<string, LayerConfigJson> {
|
||||
const sharedLayers = new Map<string, LayerConfigJson>()
|
||||
for (const layer of known_layers.layers) {
|
||||
for (const layer of known_layers["layers"]) {
|
||||
// @ts-ignore
|
||||
sharedLayers.set(layer.id, layer)
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ export class AllSharedLayers {
|
|||
}
|
||||
private static getSharedLayers(): Map<string, LayerConfig> {
|
||||
const sharedLayers = new Map<string, LayerConfig>()
|
||||
for (const layer of known_layers.layers) {
|
||||
for (const layer of known_layers["layers"]) {
|
||||
try {
|
||||
// @ts-ignore
|
||||
const parsed = new LayerConfig(layer, "shared_layers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue