cameraModeButton
fun ComponentInstaller.cameraModeButton(button: MapboxCameraModeButton, config: CameraModeComponentConfig.() -> Unit = {}): Installation
Content copied to clipboard
Install component that toggles NavigationCamera between NavigationCameraState.OVERVIEW and NavigationCameraState.FOLLOWING on button click.
The installed component will first use the NavigationCamera instance from CameraModeComponentConfig. If not available, it will attempt to use the NavigationCamera instance managed by the NavigationCamera component. (see ComponentInstaller.navigationCamera)