RouteController

interface RouteController

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

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun addOnRouteClickListener(listener: OnRouteClickListener)

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

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

Adds a new Route based on the given RouteOptions

Link copied to clipboard
abstract fun removeOnRouteClickListener(listener: OnRouteClickListener)
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.

Properties

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

List of added Routes.

Inheritors

Link copied to clipboard