Skip to content

Commit 1f44bdd

Browse files
mapbox-github-ci-writer-4[bot]evil159
authored andcommitted
[Backport release/v0.16] Expose line cutout width (#6765)
Backport f5b179023b9c3baed0765b9ce38688aa396fa28e from #6717. cc @mapbox/sdk-ci cc @mapbox/maps-ios cc @mapbox/maps-android Co-authored-by: Roman Laitarenko <[email protected]> GitOrigin-RevId: 8bdaf73c93ed8c27593429d88010f8462f864ec2
1 parent 20c31ff commit 1f44bdd

File tree

10 files changed

+145
-9
lines changed

10 files changed

+145
-9
lines changed

CHANGELOG.md

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

77
* Added support for `LandmarkIcons` featureset in Mapbox Standard Style. The `LandmarkIcons` featureset allows querying and configuring landmark building icons that appear on the map. Access landmark properties including landmarkId, name, type, and localized names through the `StandardLandmarkIconsFeature` class.
88
* Enhanced `MapStyle.standard()` and `MapStyle.standardSatellite()` with new configuration parameters for color customization, landmark icons visibility, point-of-interest styling, road appearance, and administrative boundaries.
9+
* Expose `LineLayer.lineCutoutFadeWidth` to control route line cutout fade width.
10+
911
## 11.15.0 - 11 September, 2025
1012

1113
## 11.15.0-rc.1 - 28 August, 2025

Sources/Examples/All Examples/Annotations/DynamicViewAnnotationExample.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ final class DynamicViewAnnotationExample: UIViewController, ExampleProtocol {
6767
self.finish()
6868
}.store(in: &cancelables)
6969

70-
self.toolbarItems = [
71-
UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil),
72-
UIBarButtonItem(customView: modeButton),
73-
UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil)
74-
]
70+
self.view.addSubview(modeButton)
71+
NSLayoutConstraint.activate([
72+
self.view.centerXAnchor.constraint(equalTo: modeButton.centerXAnchor),
73+
self.view.safeAreaLayoutGuide.bottomAnchor.constraint(equalToSystemSpacingBelow: modeButton.bottomAnchor, multiplier: 1)
74+
])
7575

7676
addParkingAnnotation(
7777
coordinate: CLLocationCoordinate2D(latitude: 37.445, longitude: -122.1704),
@@ -298,7 +298,8 @@ private final class Route {
298298
routeLayer.slot = .middle
299299
// make route lines visible through obstructing 3D buildings and other aboveground features
300300
routeLayer.lineCutoutWidth = .constant(30)
301-
routeLayer.lineCutoutOpacity = .constant(0.2)
301+
routeLayer.lineCutoutFadeWidth = .constant(0.5)
302+
routeLayer.lineCutoutOpacity = .constant(0)
302303
try! mapView.mapboxMap.addLayer(routeLayer)
303304

304305
// Annotation

Sources/MapboxMaps/Annotations/Generated/PolylineAnnotationManager.swift

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

Sources/MapboxMaps/Style/Generated/Layers/LineLayer.swift

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

Sources/MapboxMaps/Style/Generated/MapStyle+Standard.swift

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

Sources/MapboxMaps/SwiftUI/Annotations/Generated/PolylineAnnotationGroup.swift

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

Tests/MapboxMapsTests/Annotations/Generated/PolylineAnnotationIntegrationTests.swift

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

Tests/MapboxMapsTests/Annotations/Generated/PolylineAnnotationManagerTests.swift

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

Tests/MapboxMapsTests/Style/Generated/IntegrationTests/Layers/LineLayerIntegrationTests.swift

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

Tests/MapboxMapsTests/Style/Generated/Layers/LineLayerTests.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.

0 commit comments

Comments
 (0)