forked from MapComplete/MapComplete
Studio: first working version for basic layer properties
This commit is contained in:
parent
5a49677d5a
commit
f18a2b9184
41 changed files with 4446 additions and 852 deletions
|
|
@ -39,8 +39,9 @@ export class ExtractImages extends Conversion<
|
|||
return (
|
||||
metapath.type?.some(
|
||||
(t) =>
|
||||
t["$ref"] == "#/definitions/TagRenderingConfigJson" ||
|
||||
t["$ref"] == "#/definitions/QuestionableTagRenderingConfigJson"
|
||||
t !== null &&
|
||||
(t["$ref"] == "#/definitions/TagRenderingConfigJson" ||
|
||||
t["$ref"] == "#/definitions/QuestionableTagRenderingConfigJson")
|
||||
) ?? false
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,10 @@ export class UpdateLegacyLayer extends DesugaringStep<
|
|||
delete preset["preciseInput"]
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof preset.snapToLayer === "string") {
|
||||
preset.snapToLayer = [preset.snapToLayer]
|
||||
}
|
||||
}
|
||||
|
||||
if (config.tagRenderings !== undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue