RouteController

interface RouteController

Controls Route-specific features on the map. Allows Route management and the user interactions with the Route.

Inheritors

Properties

Link copied to clipboard
abstract val routes: List<Route>

List of added Routes.

Functions

Link copied to clipboard
abstract fun addRoute(options: RouteOptions): Route

Adds a new Route based on the given RouteOptions.

Link copied to clipboard

Registers RouteClickListener that will be notified about any route being clicked. The clicked Route becomes a parameter of the RouteClickListener.onRouteClick callback.

Link copied to clipboard
Link copied to clipboard
abstract fun removeRoutes()

Removes all previously added routes.

Link copied to clipboard
abstract fun zoomToRoutes()

Updates camera view to fit all route points.

abstract fun zoomToRoutes(padding: Int)

Updates camera view to fit all route points, plus additional padding.