fun zoomOutToFit(
camera: BaseCamera,
geometry: Geometry,
size: ScreenSize? = null
): CameraPosition
Calculates the camera position so that a geometric object on the map, located at a fixed camera installation point, fits into the screen area defined by the camera padding.
If the original camera settings do not need to be changed, then the camera copied through IBaseCamera::clone() can be used.
Parameters
camera
BaseCamera
the camera used to calculate the position.
geometry
Geometry
A geometric object to fit into the screen area specified by the camera's padding.
size
ScreenSize?
The size of the viewing area. If not specified, the value from ICamera::size() is used.
Returns