DynamicObjectState

new SuperMap3D.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 Objects have 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 scaling factor.
color Color Color.WHITE optional color
heading Number Math.PI/2 optional The angle (in radians) to rotate around the Z axis.
pitch Number 0 optional The angle (in radians) to rotate around the X axis.
roll Number 0 optional The angle (in radians) to rotate around the Y axis.
offset Cartesian3 Cartesian3.ZERO optional The offset position of the center point of the model.
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 (rotate around the Z axis).

id : Number/String

Get or set the ID.

latitude : Number

Get or set 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

Get or set the rotation angle around the Y axis.

scale : Cartesian3

Get or set the zoom factor.

startDirection : Number

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

timeStamp : Number

Get or set the timestamp.

Methods

staticSuperMap3D.DynamicObjectState.clone(state)DynamicObjectState

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