Skip to content

Commit f77eca8

Browse files
mapbox-github-ci-writer-2[bot]evil159jush
authored andcommitted
[Backport release/v0.15] [maps-ios][maps-android] Expose line cutout opacity and width (#6122)
Backport f264ec16c9acbad90e8115d429652bfac73179bc from #5884. cc @mapbox/maps-ios cc @mapbox/maps-android Co-authored-by: Roman Laitarenko <[email protected]> Co-authored-by: Ramon <[email protected]> GitOrigin-RevId: 59c54aca6dc1fa66c14f430b1deb4bf513896804
1 parent 33208cc commit f77eca8

File tree

9 files changed

+270
-0
lines changed

9 files changed

+270
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Mapbox welcomes participation and contributions from everyone.
1212

1313
## 11.15.0-beta.2 - 15 August, 2025
1414
* Add configuration option to configure attribution button tint color.
15+
* Expose `LineLayer.lineCutoutOpacity` and `LineLayer.lineCutoutWidth` to make route lines visible through obstructing 3D buildings and other aboveground features.
1516

1617
## 11.15.0-beta.1 - 12 August, 2025
1718

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ private final class Route {
296296
routeLayer.lineBorderWidth = .constant(2)
297297
routeLayer.lineBorderColor = .expression(colorExpression(normal: "#666666", selected: "#327AC2"))
298298
routeLayer.slot = .middle
299+
// make route lines visible through obstructing 3D buildings and other aboveground features
300+
routeLayer.lineCutoutWidth = .constant(30)
301+
routeLayer.lineCutoutOpacity = .constant(0.2)
299302
try! mapView.mapboxMap.addLayer(routeLayer)
300303

301304
// Annotation

Sources/MapboxMaps/Annotations/Generated/PolylineAnnotationManager.swift

Lines changed: 34 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: 76 additions & 0 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: 38 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: 52 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: 52 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: 4 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)