public func calcPosition(
camera: BaseCamera,
objects: [SimpleMapObject],
screenArea: Padding? = nil,
tilt: Tilt? = nil,
bearing: Bearing? = nil,
size: ScreenSize? = nil
) -> CameraPosition
Calculating the camera position such that the map objects are completely embedded in the screen area defined by the screen_area parameter.
Parameters
camera
BaseCamera
Camera used to calculate the position.
objects
SimpleMapObject[]
Map objects to be embedded in the screen area specified by the screen_area parameter.
screenArea
Padding?
Screen area to embed geometry. If not set, camera padding is used for calculation.
tilt
Tilt?
Tilt
bearing
Bearing?
Bearing
size
ScreenSize?
The size of the viewing area. If not specified, the ICamera::size() value is used.
Returns