Skip to content

Commit 1a12b6d

Browse files
maiospjleonard37
authored andcommitted
[maps-ios] Allow option to set SDF on a PointAnnotation image modifier (#4566)
Public contribution #2295 cc @mapbox/maps-ios cc @mapbox/maps-android --------- Co-authored-by: Patrick Leonard <[email protected]> GitOrigin-RevId: 751bb7a27de10ee91b63dea0157f13dc62defd47
1 parent d0d2739 commit 1a12b6d

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Mapbox welcomes participation and contributions from everyone.
44

55
## main
66

7+
* Allow option to set SDF on a `PointAnnotation` image in Style DSL
8+
79
## Features ✨ and improvements 🏁
810
## 11.13.1 - 18 June, 2025
911

Sources/MapboxMaps/Annotations/AnnotationImagesManager.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ extension PointAnnotation {
1515
public struct Image: Hashable, Sendable {
1616
public var image: UIImage
1717
public var name: String
18+
public var sdf: Bool
1819

1920
public init(image: UIImage, name: String) {
21+
self.init(image: image, name: name, sdf: false)
22+
}
23+
24+
public init(image: UIImage, name: String, sdf: Bool) {
2025
self.image = image
2126
self.name = name
27+
self.sdf = sdf
2228
}
2329
}
2430
}

Sources/MapboxMaps/Annotations/Generated/PointAnnotation.swift

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/MapboxMaps/Annotations/Generated/PointAnnotationManager.swift

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/MapboxMapsTests/Annotations/Generated/PointAnnotationManagerTests.swift

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)