diff --git a/Models/ThemeConfig/Conversion/CreateNoteImportLayer.ts b/Models/ThemeConfig/Conversion/CreateNoteImportLayer.ts index d4d84ded6c..dfdefe21f8 100644 --- a/Models/ThemeConfig/Conversion/CreateNoteImportLayer.ts +++ b/Models/ThemeConfig/Conversion/CreateNoteImportLayer.ts @@ -198,7 +198,8 @@ export default class CreateNoteImportLayer extends Conversion s.endsWith(e))) { + throw ( + "At " + + context + + " in : iconSize uses legacy ,bottom, center or top postfix. Use the field `anchor` instead." + ) + } + } this.iconSize = this.tr("iconSize", "40,40") this.anchor = this.tr("anchor", "center") this.label = this.tr("label", undefined) @@ -239,7 +249,6 @@ export default class PointRenderingConfig extends WithContextLoader { const anchor = render(this.anchor, "center") const mode = anchor?.trim()?.toLowerCase() ?? "center" - // in MapLibre, the offset is relative to the _center_ of the object, with left = [-x, 0] and up = [0,-y] let anchorW = 0 let anchorH = 0