mapbox-navigation-android
mapbox-navigation-android copied to clipboard
Add overview mode for MapboxViewportDataSource
MapboxViewportDataSource's overview state only frames the current leg of the route, which means that in case of multi-leg route, a portion of the route (everything besides the current leg) will not be framed.
There's a request to provide an option to frame the full route at all times.
My initial idea is to introduce an enum, sealed class or a similar interface that allows to select the overview mode:
sealed class OverviewMode {
object CurrentLeg: OverviewMode
object Full: OverviewMode
}
and accept it in MapboxViewportDataSourceOptions#overviewFrameOptions. Depending on the mode, we'll either frame the full route or the current leg.
cc @MaximAlien for iOS parity
Created ticket for iOS here: https://github.com/mapbox/mapbox-navigation-ios/issues/3686.