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

Add overview mode for MapboxViewportDataSource

Open LukasPaczos opened this issue 3 years ago • 2 comments

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.

LukasPaczos avatar Jan 11 '22 15:01 LukasPaczos

cc @MaximAlien for iOS parity

LukasPaczos avatar Jan 11 '22 15:01 LukasPaczos

Created ticket for iOS here: https://github.com/mapbox/mapbox-navigation-ios/issues/3686.

MaximAlien avatar Jan 13 '22 01:01 MaximAlien