recenterButton

fun ComponentInstaller.recenterButton(    mapView: MapView,     button: MapboxExtendableButton,     config: RecenterButtonComponentConfig.() -> Unit = {}): Installation

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.