setNavigationRoutes
Sets the routes that will be operated on.
Return
a state which contains the side effects to be applied to the map
Parameters
one or more routes. The first route in the collection will be considered the primary route and any additional routes will be alternate routes.
Sets the routes that will be operated on.
Return
a state which contains the side effects to be applied to the map
Parameters
one or more routes. The first route in the collection will be considered the primary route and any additional routes will be alternate routes.
the index of the currently active leg of the primary route. This is used when MapboxRouteLineOptions.styleInactiveRouteLegsIndependently is enabled.
Sets the routes that will be operated on.
Return
a state which contains the side effects to be applied to the map
Parameters
one or more routes. The first route in the collection will be considered the primary route and any additional routes will be alternate routes.
if available, the update will hide the portions of the alternative routes until the deviation point with the primary route. See MapboxNavigation.getAlternativeMetadataFor.
Sets the routes that will be operated on.
Return
a state which contains the side effects to be applied to the map
Parameters
one or more routes. The first route in the collection will be considered the primary route and any additional routes will be alternate routes.
the index of the currently active leg of the primary route. This is used when MapboxRouteLineOptions.styleInactiveRouteLegsIndependently is enabled.
if available, the update will hide the portions of the alternative routes until the deviation point with the primary route. See MapboxNavigation.getAlternativeMetadataFor.