cameraModeButton
fun ComponentInstaller.cameraModeButton(button: MapboxCameraModeButton, config: CameraModeConfig.() -> 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 CameraModeConfig. If not available, it will attempt to use the NavigationCamera instance managed by the NavigationCamera component. (see ComponentInstaller.navigationCamera)