public func calcPosition(
camera: BaseCamera,
geometry: Geometry,
screenArea: Padding? = nil,
tilt: Tilt? = nil,
bearing: Bearing? = nil,
size: ScreenSize? = nil
) -> CameraPosition
Calculating the camera position such that the geometric object located on the map completely fits into the screen area specified by the screen_area parameter.
If you do not need to change the settings of the original camera, you can configure the camera copied through IBaseCamera::clone().
Parameters
camera
BaseCamera
Camera used to calculate the position.
geometry
Geometry
Geometric object to fit into 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