fun zoomOutToFit(
camera: BaseCamera,
geometry: Geometry,
styleZoomToTiltRelation: StyleZoomToTiltRelation? = null,
size: ScreenSize? = null
): CameraPosition
Calculating the camera position such that, given a constant camera installation point, the geometric object located on the map fits into the screen area specified by the camera padding.
If you do not need to change the settings of the original camera, then you can configure the camera copied via IBaseCamera::clone().
Parameters
camera
BaseCamera
Camera used for calculating the position.
geometry
Geometry
Geometric object to fit into the screen area, specified by the camera paddings.
styleZoomToTiltRelation
StyleZoomToTiltRelation?
Dependence function of the camera tilt angle on the style zoom level.
size
ScreenSize?
Size of the viewing area. If not specified, the current value of ICamera::size() is used.
Returns