Navigation Map Route
Provide a route using addRoutes and a route will be drawn using runtime styling. The route will automatically be placed below all labels independent of specific style. If the map styles changed when a routes drawn on the map, the route will automatically be redrawn onto the new map style.
You are given the option when first constructing an instance of this class to pass in a style resource. This allows for custom colorizing and line scaling of the route. Inside your applications {@code style.xml}
file, you extend {@code
Constructors
NavigationMapRoute
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapRoute
Link copied to clipboard
@TestOnly()
Content copied to clipboard
Types
Builder
Link copied to clipboard
Functions
addIdentifiableRoute
Link copied to clipboard
addIdentifiableRoutes
Link copied to clipboard
open fun addIdentifiableRoutes(directionsRoutes: List<IdentifiableRoute>)
Content copied to clipboard
addProgressChangeListener
Link copied to clipboard
onNewRouteProgress
Link copied to clipboard
removeProgressChangeListener
Link copied to clipboard
setOnRouteSelectionChangeListener
Link copied to clipboard
open fun setOnRouteSelectionChangeListener(onRouteSelectionChangeListener: OnRouteSelectionChangeListener)
Content copied to clipboard
Add a OnRouteSelectionChangeListener to know which route the user has currentlyselected as their primary route.
showAlternativeRoutes
Link copied to clipboard
updateRouteArrowVisibilityTo
Link copied to clipboard
updateRouteVisibilityTo
Link copied to clipboard
Properties
vanishRouteLineEnabled
Link copied to clipboard