createWithCameraViewpoint

fun createWithCameraViewpoint(cameraLocation: Point, heading: Double, pitch: Double, roll: Double, altitudeMode: KmlAltitudeMode): KmlViewpoint?

Creates a KML viewpoint from the provided camera location. KML viewpoint defines either a standalone camera independent of the point of interest being observed or a virtual camera in relation to the point of interest being observed.

Return

A KmlViewpoint, or null if the camera location spatial reference is a local coordinate system that can't be projected.

Since

200.1.0

Throws

if the cameraLocation has no spatial reference.