reframe

abstract fun reframe(onReframeFinished: OnReframeFinished? = null)

Reframe MapView to a certain zoom and position to make sure every coordinate will be shown on the MapView and not covered by registered MapOverlays. If no OnReframeFinished object is provided, MapView will jump to the new CameraOptions directly; if OnReframeFinished object is provided, the new CameraOptions will be return and users can define their own animation to move the camera.

Parameters

onReframeFinished

the listener to get the CameraOptions