public func zoomOutToFit(
camera: BaseCamera,
geometry: Geometry,
size: ScreenSize? = nil
) -> CameraPosition
Calculating the camera position, such that with the camera installation point unchanged, the geometric object on the map fits into the screen area specified by the camera padding.
If you do not need to change the original camera settings, you can configure the camera copied through IBaseCamera::clone().
Parameters
camera
BaseCamera
Camera used to calculate the position.
geometry
Geometry
Geometric object to fit into the screen area specified by the camera's padding.
size
ScreenSize?
Size of the viewing area. If not specified, the ICamera::size() value is used.
Returns