public func zoomOutToFit(
camera: BaseCamera,
objects: [SimpleMapObject],
size: ScreenSize? = nil
) -> CameraPosition
Calculating the camera position, so that with a constant camera position, the geometric object on the map fits into the screen area defined by the camera padding.
Parameters
camera
BaseCamera
Camera used to calculate the position.
objects
SimpleMapObject[]
Map objects to fit into the screen area specified by the camera padding.
size
ScreenSize?
Size of the viewing area. If not specified, the ICamera::size() value is used.
Returns