fun zoomOutToFit(
camera: BaseCamera,
objects: List<SimpleMapObject>,
size: ScreenSize? = null
): CameraPosition
Calculation of the camera position such 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 viewport. If not specified, the value of ICamera::size() is used.
Returns