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
{{ message }}
Repository navigation
CarPlay route preview does not fit to the route #2190
When previewing a route on CarPlay in v0.35.0 with map SDK v5.2.0, the route rarely fits the screen. The camera never takes into account the left sidebar:
It’s usually fine when the preview map first appears, but the problem starts as soon as you switch to an alternative route. At the point where CarPlayManager.mapTemplate(_:selectedPreviewFor:using:) calls NavigationMapView.showcase(_:animated:), there’s never a left content inset, even though the content inset would’ve already been set to the CarPlay safe area insets in CarPlayMapViewController.viewSafeAreaInsetsDidChange().
This issue appears to be caused primarily by a combination of mapbox/mapbox-gl-native#15232 and mapbox/mapbox-gl-native#15233, but it used to reproduce less frequently in previous versions of the map SDK, so there may be other compounding factors as well.
Activity
Work around mapbox-gl-native/15574. Avoid re-setting content inset to…
astojilj commentedon Sep 18, 2019
@1ec5 The workaround in #2211 makes this look correct. PTAL.
Work around mapbox-gl-native/15574. Avoid re-setting content inset to…