public func calcPosition(
camera: BaseCamera,
geometry: Geometry,
styleZoomToTiltRelation: StyleZoomToTiltRelation? = nil,
screenArea: Padding? = nil,
tilt: Tilt? = nil,
bearing: Bearing? = nil,
size: ScreenSize? = nil
) -> CameraPosition
Parameters
camera
BaseCamera
Camera used for position calculation.
geometry
Geometry
Geometry object to 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?
Map tilt. If not set, the current camera tilt is used.
bearing
Bearing?
Map bearing. If not set, the current camera bearing is used.
size
ScreenSize?
Size of the view area. If not specified, the ICamera::size() value is used.
Returns