Skip to content

Commit 86441f0

Browse files
authored
Merge pull request #4049 from mapbox/azarovalex/fix-mapview-injection
Fix injected map view layout bug
2 parents 4f9c95b + 5fdc7b9 commit 86441f0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Fixed an issue where the destination building is not highlighted after rerouting. ([#4034](https://github.com/mapbox/mapbox-navigation-ios/pull/4034))
2222
* Fixed an issue where the incorrect destination building is highlighted after panning the correct building off screen. ([#4034](https://github.com/mapbox/mapbox-navigation-ios/pull/4034))
2323
* Fixed an issue where the maneuver arrow on the route line overlapped labels for points of interest. ([#4030](https://github.com/mapbox/mapbox-navigation-ios/pull/4030))
24+
* Fixed an issue where `NavigationMapView` injected with `NavigationOptions` isn't visible in active navigation. ([#4049](https://github.com/mapbox/mapbox-navigation-ios/pull/4049))
2425

2526
### CarPlay
2627

Sources/MapboxNavigation/NavigationView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ open class NavigationView: UIView {
196196
public init(frame: CGRect,
197197
tileStoreLocation: TileStoreConfiguration.Location? = .default,
198198
navigationMapView: NavigationMapView? = nil) {
199+
navigationMapView?.translatesAutoresizingMaskIntoConstraints = false
199200
self.navigationMapView = navigationMapView ?? NavigationMapView(frame: frame, tileStoreLocation: tileStoreLocation)
200201

201202
super.init(frame: frame)

0 commit comments

Comments
 (0)