createWithViewpoint

Creates a KML viewpoint from a viewpoint. KML viewpoint defines either a look at point or a camera, whereas a viewpoint must always have a look at point, and optionally also have a camera. A viewpoint that has a camera will create a KML viewpoint of type KmlViewpointType.Camera. A viewpoint that has no camera will create a KML viewpoint of type KmlViewpointType.LookAt.

Return

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

Since

200.1.0

Throws

if the viewpoint has no spatial reference.