Skip to content

Improve layout in landscape orientation #1139

Closed

Description

@1ec5

NavigationViewController is laid out inefficiently when the device is in landscape orientation. Each banner takes up the entire width of the screen, revealing plenty of whitespace, while taking up valuable vertical screen real estate. With enough banners visible (lanes, “then”, simulation), the user puck overlaps the banners, and the floating action buttons at right overlap the bottom bar, obscuring the exit button.

landscape

Many navigation applications, including Apple Maps, switch to a two-column layout in landscape orientation, with the left column containing the banners and the bottom bar. With this layout, the banner gets less horizontal space but more vertical space, which can be used for line wrapping or for displaying additional information like incidents.

Previously: #726.

/cc @mapbox/navigation-ios

Activity

  1. bsudekum commented on Mar 29, 2018

    @bsudekum
    Contributor

    I'm actually unsure how the lanes view and the then banner are both showing up in this pr, as we only show the then banner if the lanes view is hidden

    lanesView.update(for: routeController.routeProgress.currentLegProgress)
    if lanesView.isHidden {
    nextBannerView.update(for: routeController.routeProgress)
    }

  2. 1ec5 commented on Mar 31, 2018

    @1ec5
    ContributorAuthor

    For the original report above, I was simulating approximately this route, and the stacked views did reproduce reliably. There’s a bit of a gap between these two checks:

    let durationForNext = RouteControllerHighAlertInterval * RouteControllerLinkedInstructionBufferMultiplier
    guard routeProgress.currentLegProgress.currentStepProgress.durationRemaining <= durationForNext, upcomingStep.expectedTravelTime <= durationForNext else {
    return false
    }

    durationRemaining < RouteControllerMediumAlertInterval {

    So one view showed up first, then the other, as I approached the intersection.

  3. changed the title [-]Inefficient use of screen real estate in landscape orientation[/-] [+]Improve layout in landscape orientation[/+] on May 18, 2018
  4. bsudekum commented on May 21, 2018

    @bsudekum
    Contributor

    Posting UI without any sub instructions:
    simulator screen shot - iphone x - 2018-05-21 at 11 23 30

  5. 1ec5 commented on May 21, 2018

    @1ec5
    ContributorAuthor

    Note that the screenshot in #1139 (comment) was taken on an iPhone 8, while the screenshot in #1139 (comment) was taken on an iPhone X. (You can tell because of the extra padding on the right to make room for the notch.)

  6. brsbl-zz commented on May 26, 2018

    @brsbl-zz

    cc @cjballard would love your input here more generally, but also I think it's important to think about landscape mode as we are sprinting on redesigning the UI.

  7. Cjballard-zz commented on May 29, 2018

    @Cjballard-zz

    @brsbl Was thinking about this as well while doing some test drives in landscape mode. I liked the Apple & Waze two-column approach a little better because it consolidated info neatly and reserved more map space.

    apple-landscape

    But more generally interested in how we can rectify information dead zones where we rarely present any information and instruction in landscape mode, and split-screen is just one solution.

    dedzone

  8. 1ec5 commented on Sep 24, 2018

    @1ec5
    ContributorAuthor

    By the way, we implemented a two-column layout as a matter of course in CarPlay. (We didn’t have a choice, and it looks good!)

  9. added
    CarPlay
    and removed
    CarPlay
    on Jan 24, 2019
  10. 1ec5 commented on May 28, 2019

    @1ec5
    ContributorAuthor

    mapbox/mapbox-gl-native#14664 adjusts the map’s vanishing point to account for edge padding, which unblocks the sort of landscape layout seen in CarPlay. (#2134 updates the CarPlay support code to take advantage of this improvement to the map SDK.)

  11. 3 remaining items

  12. modified the milestones: , f (android-v1.6.0 / ios-v1.4.0) on Dec 17, 2020
  13. removed
    CarPlay
    on May 18, 2021
  14. modified the milestones: v2.1 (beta), v2.1 (RC) on May 18, 2021
  15. modified the milestones: v2.1-rc, v2.2 on Nov 15, 2021
  16. MaximAlien commented on Nov 15, 2021

    @MaximAlien
    Contributor

    Moving to v2.2 for now. There is a low chance that we'll be able to tackle this in v2.1.

  17. self-assigned this
    on Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UItopic: design

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions