public func calcPosition(
camera: BaseCamera,
objects: [SimpleMapObject],
styleZoomToTiltRelation: StyleZoomToTiltRelation? = nil,
screenArea: Padding? = nil,
tilt: Tilt? = nil,
bearing: Bearing? = nil,
size: ScreenSize? = nil
) -> CameraPosition
Parameters
camera
BaseCamera
Camera used for position calculation.
objects
SimpleMapObject[]
Map objects that must be embedded into the screen area defined by the screen_area parameter.
styleZoomToTiltRelation
StyleZoomToTiltRelation?
Dependence function of the camera tilt angle on the style scaling level.
screenArea
Padding?
Screen area in which to embed the geometry. If not specified, camera padding is used for calculation.
tilt
Tilt?
Camera tilt. If not specified, the current camera tilt in used.
bearing
Bearing?
Camera bearing. If not specified, the current camera bearing is used.
size
ScreenSize?
Size of the view area. If not specified, the ICamera::size() value is used.
Returns