fun zoomOutToFit(
camera: BaseCamera,
objects: List<SimpleMapObject>,
size: ScreenSize? = null
): CameraPosition
Calculation of the camera position so that with the camera's installation point unchanged, the geometric object located on the map fits into the screen area specified by the camera's padding.
Parameters
camera
BaseCamera
The camera used to calculate the position.
objects
List<SimpleMapObject>
Map objects to fit into the screen area specified by the camera's padding.
size
ScreenSize?
Size of the viewving area.\nIf not specified, ICamera::size() value is used.
Returns