forked from MapComplete/MapComplete
Fix: add support for legacy iconSize to fix some custom themes, see #1494
This commit is contained in:
parent
a03ba313df
commit
200361bf8d
1 changed files with 7 additions and 1 deletions
|
@ -145,7 +145,13 @@ export class UpdateLegacyLayer extends DesugaringStep<
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const pr = <PointRenderingConfigJson>rendering
|
const pr = <PointRenderingConfigJson>rendering
|
||||||
const iconSize = pr.iconSize
|
let iconSize = pr.iconSize
|
||||||
|
console.log("Iconsize is", iconSize)
|
||||||
|
|
||||||
|
if (Object.keys(pr.iconSize).length === 1 && pr.iconSize["render"] !== undefined) {
|
||||||
|
iconSize = pr.iconSize["render"]
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof iconSize === "string")
|
if (typeof iconSize === "string")
|
||||||
if (["bottom", "center", "top"].some((a) => (<string>iconSize).endsWith(a))) {
|
if (["bottom", "center", "top"].some((a) => (<string>iconSize).endsWith(a))) {
|
||||||
const parts = iconSize.split(",").map((parts) => parts.toLowerCase().trim())
|
const parts = iconSize.split(",").map((parts) => parts.toLowerCase().trim())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue