MapboxRouteCalloutView

class MapboxRouteCalloutView(mapView: MapView, options: MapboxRouteCalloutViewOptions = MapboxRouteCalloutViewOptions.Builder().build())

Responsible for rendering data generated by the MapboxRouteCalloutApi class. The data will change the appearance/behaviour of the route callout(s) on the map.

Parameters

mapView

the instance of MapView

options

used for determining the appearance of the route callouts

Constructors

Link copied to clipboard
fun MapboxRouteCalloutView(mapView: MapView, options: MapboxRouteCalloutViewOptions = MapboxRouteCalloutViewOptions.Builder().build())

Functions

Link copied to clipboard
fun renderCallouts(routeCalloutResult: RouteCalloutData)

Renders an RouteCalloutData

Link copied to clipboard
fun setRouteCalloutClickListener(listener: (NavigationRoute) -> Unit?)
Link copied to clipboard
fun updateRouteCalloutViewOptions(options: MapboxRouteCalloutViewOptions)

Updates options determining the appearance of the route callouts