zoomOutToFit(camera,objects,size)
fun zoomOutToFit(
camera: BaseCamera,
objects: List<SimpleMapObject>,
size: ScreenSize? = null
): CameraPosition
Calculates the camera position so that with the camera installation point unchanged, the geometric object located on the map fits into the screen area specified by the camera padding.
Parameters
camera
BaseCamera
Camera used to calculate the position.
objects
List<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 value from ICamera::size() is used.
Returns