You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the device’s orientation changes between portrait and landscape, we need to update any CLLocationManager’s headingOrientation property to reflect the new device orientation. Otherwise, headings (and course readings?) may be off by up to 90°. The map SDK updates its location manager’s heading orientation whenever -layoutSubviews gets called on MGLMapView, since the view hierarchy is always updated on orientation changes. But this library can observe UIDeviceOrientationDidChangeNotification.
I momentarily forgot that course is independent of the device’s heading and therefore independent of its orientation too. Meanwhile, this library doesn’t record the heading at all, so we’re good here.
When the device’s orientation changes between portrait and landscape, we need to update any CLLocationManager’s
headingOrientation
property to reflect the new device orientation. Otherwise, headings (and course readings?) may be off by up to 90°. The map SDK updates its location manager’s heading orientation whenever-layoutSubviews
gets called on MGLMapView, since the view hierarchy is always updated on orientation changes. But this library can observeUIDeviceOrientationDidChangeNotification
./ref mapbox/mapbox-navigation-ios#1942 (comment)
/cc @rclee
The text was updated successfully, but these errors were encountered: