diff --git a/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift b/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift index f484482..779753a 100644 --- a/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift +++ b/Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift @@ -7,6 +7,8 @@ import MapLibreSwiftMacros @MLNStyleProperty("iconColor", supportsInterpolation: true) @MLNStyleProperty("iconAllowsOverlap", supportsInterpolation: false) @MLNStyleProperty("iconOffset", supportsInterpolation: true) +// An enum would probably be better? +@MLNStyleProperty("iconAnchor", supportsInterpolation: false) @MLNStyleProperty("textColor", supportsInterpolation: true) @MLNStyleProperty("textFontSize", supportsInterpolation: true) @@ -16,6 +18,7 @@ import MapLibreSwiftMacros @MLNStyleProperty("textAnchor", supportsInterpolation: false) @MLNStyleProperty("textOffset", supportsInterpolation: true) @MLNStyleProperty("maximumTextWidth", supportsInterpolation: true) +@MLNStyleProperty("textAllowsOverlap", supportsInterpolation: false) @MLNStyleProperty("textHaloColor", supportsInterpolation: true) @MLNStyleProperty("textHaloWidth", supportsInterpolation: true) @@ -144,6 +147,7 @@ private struct SymbolStyleLayerInternal: StyleLayer { result.iconAllowsOverlap = definition.iconAllowsOverlap result.iconColor = definition.iconColor result.iconOffset = definition.iconOffset + result.iconAnchor = definition.iconAnchor result.text = definition.text result.textColor = definition.textColor @@ -152,6 +156,7 @@ private struct SymbolStyleLayerInternal: StyleLayer { result.textAnchor = definition.textAnchor result.textOffset = definition.textOffset result.textFontNames = definition.textFontNames + result.textAllowsOverlap = definition.textAllowsOverlap result.textHaloColor = definition.textHaloColor result.textHaloWidth = definition.textHaloWidth