forked from MapComplete/MapComplete
Feature: layer validation system now builds a dependency graph and only updates what is needed, makes "refresh:layeroverview" redundant
This commit is contained in:
parent
1bd060df82
commit
fda0bc6b2e
19 changed files with 301 additions and 186 deletions
|
@ -1048,6 +1048,11 @@ export class PrepareLayer extends Fuse<LayerConfigJson> {
|
|||
if (json === undefined || json === null) {
|
||||
throw "Error: prepareLayer got null"
|
||||
}
|
||||
if (json.source?.["osmTags"] !== undefined && json.source?.["osmTags"]?.["and"] === undefined) {
|
||||
json = { ...json }
|
||||
json.source = <any>{ ...(<object>json.source) }
|
||||
json.source["osmTags"] = { "and": [json.source["osmTags"]] }
|
||||
}
|
||||
return super.convert(json, context)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue