forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
612e71a4b6
commit
511d20eb34
245 changed files with 43884 additions and 8661 deletions
|
@ -1,6 +1,18 @@
|
|||
import { Concat, DesugaringContext, DesugaringStep, Each, FirstOf, Fuse, On, SetDefault } from "./Conversion"
|
||||
import {
|
||||
Concat,
|
||||
DesugaringContext,
|
||||
DesugaringStep,
|
||||
Each,
|
||||
FirstOf,
|
||||
Fuse,
|
||||
On,
|
||||
SetDefault,
|
||||
} from "./Conversion"
|
||||
import { LayerConfigJson } from "../Json/LayerConfigJson"
|
||||
import { MinimalTagRenderingConfigJson, TagRenderingConfigJson } from "../Json/TagRenderingConfigJson"
|
||||
import {
|
||||
MinimalTagRenderingConfigJson,
|
||||
TagRenderingConfigJson,
|
||||
} from "../Json/TagRenderingConfigJson"
|
||||
import { Utils } from "../../../Utils"
|
||||
import RewritableConfigJson from "../Json/RewritableConfigJson"
|
||||
import SpecialVisualizations from "../../../UI/SpecialVisualizations"
|
||||
|
@ -1048,10 +1060,13 @@ 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) {
|
||||
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"]] }
|
||||
json.source["osmTags"] = { and: [json.source["osmTags"]] }
|
||||
}
|
||||
return super.convert(json, context)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue