Skip to content

CarPlay route preview does not fit to the route #2190

Closed

Description

@1ec5

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.

/cc @mapbox/navigation-ios @mapbox/maps-ios

Activity

  1. added
    bug
    CarPlay
    on Jul 26, 2019
  2. added
    P0
    and removed on Aug 23, 2019
  3. self-assigned this
    on Sep 5, 2019
  4. astojilj commented on Sep 18, 2019

    @astojilj
    Contributor

    @1ec5 The workaround in #2211 makes this look correct. PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CarPlayP0bugtopic: camera

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions