Skip to content

Commit 4a8fc8a

Browse files
authored
Adding support for iconOffset (#87)
* adding support for iconOffset * removed comment
1 parent 1ac5cf7 commit 4a8fc8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import MapLibreSwiftMacros
66
@MLNStyleProperty<Double>("iconRotation", supportsInterpolation: true)
77
@MLNStyleProperty<UIColor>("iconColor", supportsInterpolation: true)
88
@MLNStyleProperty<Bool>("iconAllowsOverlap", supportsInterpolation: false)
9+
@MLNStyleProperty<CGVector>("iconOffset", supportsInterpolation: true)
910

1011
@MLNStyleProperty<UIColor>("textColor", supportsInterpolation: true)
1112
@MLNStyleProperty<Double>("textFontSize", supportsInterpolation: true)
@@ -142,6 +143,7 @@ private struct SymbolStyleLayerInternal: StyleLayer {
142143
result.iconRotation = definition.iconRotation
143144
result.iconAllowsOverlap = definition.iconAllowsOverlap
144145
result.iconColor = definition.iconColor
146+
result.iconOffset = definition.iconOffset
145147

146148
result.text = definition.text
147149
result.textColor = definition.textColor

0 commit comments

Comments
 (0)