Class: KmlLookAt

KmlLookAt(options)

Contains the data associated with LookAt node.

Constructor

new KmlLookAt(options)

Constructs an KmlLookAt. Applications usually don't call this constructor. It is called by KmlFile as objects from Kml file are read. This object is already concrete implementation.
Parameters:
Name Type Description
options Object
Properties
Name Type Description
objectNode Node Node representing looking at something in the document.
Source:
See:
Throws:
If the node is null or undefined.
Type
ArgumentError

Extends

Members

displayName :String

The display name of the renderable.
Type:
  • String
Inherited From:
Default Value:
  • "Renderable"
Source:

enabled :Boolean

Indicates whether to display this renderable.
Type:
  • Boolean
Inherited From:
Default Value:
  • true
Source:

(readonly) id :String

Every object, which is part of the KML document has its identity. We will use it for changes in the document for binding.
Type:
  • String
Inherited From:
Source:

(readonly) kmlAltitude :Number

Distance from the earth's surface, in meters. Interpreted according to the LookAt's altitude mode.
Type:
  • Number
Source:

(readonly) kmlAltitudeMode :String

Specifies how the <altitude> specified for the LookAt point is interpreted. Possible values are as follows: clampToGround - (default) Indicates to ignore the <altitude> specification and place the LookAt position on the ground. relativeToGround - Interprets the <altitude> as a value in meters above the ground. absolute - Interprets the <altitude> as a value in meters above sea level.
Type:
  • String
Source:

(readonly) kmlHeading :Number

Direction (that is, North, South, East, West), in degrees. Default=0 (North). (See diagram below.) Values range from 0 to 360 degrees.
Type:
  • Number
Source:

(readonly) kmlLatitude :Number

Latitude of the point the camera is looking at. Degrees north or south of the Equator (0 degrees). Values range from -90 degrees to 90 degrees.
Type:
  • Number
Source:

(readonly) kmlLongitude :Number

Longitude of the point the camera is looking at. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from -180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.
Type:
  • Number
Source:

(readonly) kmlRange :Number

Distance in meters from the point specified by <longitude>, <latitude>, and <altitude> to the LookAt position. (See diagram below.)
Type:
  • Number
Source:

(readonly) kmlTilt :Number

Angle between the direction of the LookAt position and the normal to the surface of the earth. (See diagram below.) Values range from 0 to 90 degrees. Values for <tilt> cannot be negative. A <tilt> value of 0 degrees indicates viewing from directly above. A <tilt> value of 90 degrees indicates viewing along the horizon.
Type:
  • Number
Source:

(readonly) kmlTimePrimitive :KmlTimePrimitive

Time associated with current view. It shouldn't be displayed outside of this time frame.
Type:
Inherited From:
Source:

(readonly) node :Node

Node of this object. It may be overridden by other users of some functions like parse.
Type:
  • Node
Inherited From:
Source:

pickDelegate :Object

Indicates the object to return as the userObject of this shape when picked. If null, then this shape is returned as the userObject.
Type:
  • Object
Inherited From:
Default Value:
  • null
Source:
See:

userProperties :Object

An application defined object associated with this renderable. A typical use case is to associate application defined data with a picked renderable.
Type:
  • Object
Inherited From:
Default Value:
  • An empty object
Source:

Methods

getTagNames() → {Array.<String>}

Returns tag name of all descendants of abstract node or the tag name for current node.
Overrides:
Source:
Returns:
Type
Array.<String>

hook(controls, options)

It calls all controls associated with current KmlFile with the link to this.
Parameters:
Name Type Description
controls Array.<KmlControls> Controls associated with current tree.
options Object Options to pass into the controls.
Inherited From:
Source:

render(dc)

Render this renderable. Some shapes actually draw themselves during this call, others only add themselves to the draw context's ordered rendering list for subsequent drawing when their renderOrdered method is called. This method is intended to be called by layers such as RenderableLayer and not by applications.
Parameters:
Name Type Description
dc DrawContext The current draw context.
Inherited From:
Source:

update()

Go to the look at location.
Source: