recenterButton
fun ComponentInstaller.recenterButton( mapView: MapView, button: MapboxExtendableButton, config: RecenterButtonConfig.() -> Unit = {}): Installation
Content copied to clipboard
Install component that re-centers the mapView to device location on button click.
The installed components registers itself as a LocationObserver and updates camera position only if location data is available.