diff --git a/CHANGELOG.md b/CHANGELOG.md index d436779488ab..03d6ccb48500 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Mapbox welcomes participation and contributions from everyone. ## main +* Use new `LineJoin.none` in conjunction with an image as a `linePattern` value to display repeated series of images along a line(e.g. dotted route line). + ## 11.5.0-rc.1 - 19 June, 2024 * The CustomRasterSource API has been updated. It no longer includes a cache and now provides notifications about alternative tiles that can be used when the ideal ones are unavailable. diff --git a/Sources/MapboxMaps/Style/Generated/Properties/Properties.swift b/Sources/MapboxMaps/Style/Generated/Properties/Properties.swift index 7eaf7f38c926..bbcec9caa830 100644 --- a/Sources/MapboxMaps/Style/Generated/Properties/Properties.swift +++ b/Sources/MapboxMaps/Style/Generated/Properties/Properties.swift @@ -50,6 +50,9 @@ public struct LineJoin: RawRepresentable, Codable, Hashable { /// A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet. public static let miter = LineJoin(rawValue: "miter") + /// Line segments are not joined together, each one creates a separate line. Useful in combination with line-pattern. Line-cap property is not respected. Can't be used with data-driven styling. + public static let none = LineJoin(rawValue: "none") + } // MARK: ICON_ANCHOR diff --git a/Tests/MapboxMapsTests/Style/Generated/Properties/PropertiesTests.swift b/Tests/MapboxMapsTests/Style/Generated/Properties/PropertiesTests.swift index 4c9abdaa8ec3..b2a8d9ea0d7d 100644 --- a/Tests/MapboxMapsTests/Style/Generated/Properties/PropertiesTests.swift +++ b/Tests/MapboxMapsTests/Style/Generated/Properties/PropertiesTests.swift @@ -48,7 +48,7 @@ extension LineJoin { } static func random() -> LineJoin { - let allCases: [LineJoin] = [.bevel, .round, .miter] + let allCases: [LineJoin] = [.bevel, .round, .miter, .none] return allCases.randomElement()! } }