fun zoomOutToFit(
camera: BaseCamera,
objects: List<SimpleMapObject>,
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.
Parameters
camera
BaseCamera
Camera used for calculating the position.
objects
List<SimpleMapObject>
Map objects 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