presentRoutes

fun presentRoutes(routes: RouteList, mainRoute: Route? = null, displayBubble: Boolean = false, displayRouteName: Boolean = true, displayTrafficIcon: Boolean = true, displayFerryIcon: Boolean = true, displayTollIcon: Boolean = true, centerMapView: Boolean = true, animation: Animation = Animation(EAnimation.Linear, 1000), displayMode: ERouteDisplayMode = ERouteDisplayMode.Full, edgeAreaInsets: Rect? = null): Boolean

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

Parameters

routes

Routes list to be presented.

mainRoute

Will be highlighted as main route. Default is first of the routes.

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 routes only if centerOnRoutes is true.

displayMode

Route display mode.

edgeAreaInsets

Edge area insets in pixels.