Package com.mapbox.navigation.ui.components.maps

Types

Link copied to clipboard
class CameraModeConfig

Camera mode button component configuration class.

Link copied to clipboard
class RecenterButtonConfig

Recenter button component configuration class.

Link copied to clipboard
class RoadNameConfig

Road name component configuration class.

Functions

Link copied to clipboard
fun ComponentInstaller.cameraModeButton(button: MapboxCameraModeButton, config: CameraModeConfig.() -> Unit = {}): Installation

Install component that toggles NavigationCamera between NavigationCameraState.OVERVIEW and NavigationCameraState.FOLLOWING on button click.

Link copied to clipboard
fun ComponentInstaller.recenterButton(    mapView: MapView,     button: MapboxExtendableButton,     config: RecenterButtonConfig.() -> Unit = {}): Installation

Install component that re-centers the mapView to device location on button click.

Link copied to clipboard
fun ComponentInstaller.roadName(    mapView: MapView,     roadNameView: MapboxRoadNameView,     config: RoadNameConfig.() -> Unit = {}): Installation

Install component that updates MapboxRoadNameView with a road name that matches current device location.