setRoute
Set a route to be rendered. This also resets the selected leg and step indices to 0.
Parameters
route
- Route
Throws
if the route is null
open fun setRoute(@NonNull route: MPRoute, @Nullable icons: HashMap<Integer, MPRouteStopIconProvider>)
Set a route to be rendered. This also resets the selected leg and step indices to 0.
Parameters
route
- Route
icons
- Zero based indexed map with icons to use for the route stops. The indexes are the natural occurring order of the stops. So if optimized use getOrderedStopIndexes to know the order of the stops.
Throws
if the route is null