Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import MapLibreSwiftMacros
@MLNStyleProperty<UIColor>("iconColor", supportsInterpolation: true)
@MLNStyleProperty<Bool>("iconAllowsOverlap", supportsInterpolation: false)
@MLNStyleProperty<CGVector>("iconOffset", supportsInterpolation: true)
// An enum would probably be better?
@MLNStyleProperty<String>("iconAnchor", supportsInterpolation: false)

@MLNStyleProperty<UIColor>("textColor", supportsInterpolation: true)
@MLNStyleProperty<Double>("textFontSize", supportsInterpolation: true)
Expand All @@ -16,6 +18,7 @@ import MapLibreSwiftMacros
@MLNStyleProperty<String>("textAnchor", supportsInterpolation: false)
@MLNStyleProperty<CGVector>("textOffset", supportsInterpolation: true)
@MLNStyleProperty<Double>("maximumTextWidth", supportsInterpolation: true)
@MLNStyleProperty<Bool>("textAllowsOverlap", supportsInterpolation: false)

@MLNStyleProperty<UIColor>("textHaloColor", supportsInterpolation: true)
@MLNStyleProperty<Double>("textHaloWidth", supportsInterpolation: true)
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading