mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Allow map ornaments to be located at the bottom of the map

Open 1ec5 opened this issue 4 years ago • 0 comments

As of #2763, the developer can set NavigationViewController.floatingButtonsPosition to swap the the floating buttons (such as the feedback button) and speed limit view to opposite sides of the map view, but there isn’t a built-in way to move these controls to the bottom left and right corners of the map view. Moreover, it isn’t possible to move the Resume button to a location other than the bottom leading (bottom left in English) corner of the map view.

The MapOrnamentPosition enumeration should have additional cases for the bottom leading and trailing corners, and NavigationView.reinstallConstraints() should respect these cases.

Any automatic interaction between the floating buttons, speed limit view, and Resume button can get complex, so NavigationViewController ideally would have new properties alongside floatingButtonsPosition that control the position of the speed limit view and Resume button independently; if the developer sets one property but not the others, then the UI would end up with more than one type of control stacked in one corner.

/cc @mapbox/navigation-ios

1ec5 avatar Mar 29 '21 15:03 1ec5