presentRoute

fun presentRoute(route: Route, displayBubble: Boolean = false, displayRouteName: Boolean = true, displayTrafficIcon: Boolean = true, displayFerryIcon: Boolean = true, displayTollIcon: Boolean = true, centerMapView: Boolean = true, animation: Animation = Animation(animation = EAnimation.Linear, duration = 1000), displayMode: ERouteDisplayMode = ERouteDisplayMode.Full, edgeAreaInsets: Rect? = null, routeRenderSettings: RouteRenderSettings? = null): Boolean

Presents the provided route on the map. If display bubble is false then no label will be visible.

Parameters

route

Route to be presented.

displayBubble

Will display a bubble with route information, default false.

displayTrafficIcon

Will display traffic icon, if available, default true.

displayFerryIcon

Will display ferry icon, if available, default true.

displayTollIcon

Will display toll icon, if available, default true.

centerMapView

Will center this MapView on provided routes, default true.

animation

Will be used to center the view on route only if centerOnRoutes is true.

displayMode

Route display mode.

edgeAreaInsets

Edge area insets in pixels.

routeRenderSettings

Route render settings.