DynamicObjectState

new Cesium.DynamicObjectState(options)

Dynamic instance object state information, used to update the state of the specified id model instance in the dynamic layer.
Name Type Description
options Object The object has the following properties:
Name Type Default Description
longitude Number 0.0 optional longitude.
latitude Number 0.0 optional latitude.
altitude Number 0.0 optional height.
scale Cartesian3 optional The zoom factor.
color Color Color.WHITE optional colour.
heading Number Math.PI/2 optional The angle (radians) of the rotation around the Z axis.
pitch Number 0 optional The angle (radians) of rotation around the X axis.
roll Number 0 optional The angle (radians) of the rotation around the Y axis.
offset Cartesian3 Cartesian3.ZERO optional The offset position of the model center point.
id Number | string optional Object id.
description Object | String optional Description.

Members

altitude : Number

Get or set the height.

color : Color

Get or set the color.

description : Object|String

Get or set description information

heading : Number

Get or set the azimuth angle (rotate around the Z axis).

id : Number/String

Get or set the ID.

latitude : Number

Get or set the latitude.

longitude : Number

Get or set the longitude.

offset : Cartesian3

Get or set the offset position of the model center point.

pitch : Number

Get or set the rotation angle around the X axis.

roll : Number

Gets or sets the rotation angle around the Y axis.

scale : Cartesian3

Get or set the zoom factor.

startDirection : Number

Get or set the azimuth angle of the model (the horizontal angle from the north direction line to the target direction line in a clockwise direction), unit: radians.

timeStamp : Number

Get or set the timestamp.

Methods

staticCesium.DynamicObjectState.clone(state)DynamicObjectState

Clone object
Name Type Description
state DynamicObjectState The source object of the clone.
Returns:
Return the cloned object.
Example:
var state = DynamicObjectState.clone(oldState);