KmlViewpoint.withViewpoint constructor

KmlViewpoint.withViewpoint(
  1. Viewpoint viewpoint
)

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.

Parameters: