TrajectoryEffect

Trajectory effects, inherited fromPlotGeoEffectBase

new SuperMap3D.TrajectoryEffect(options)

Name Type Description
options Object optional Object with the following properties:
Name Type Default Description
isUsePlotVisible Boolean true optional Whether it is affected by the visibility of the plotting object
visible Boolean false optional Whether to show
scene Scene optional Set the scene
geoGraphicObject geoGraphicObject optional Set the symbol of the binding
position MPoint3D optional Set the effect location, if not set, get it from the symbol first. If the symbol is not bound, you need to update the location point through the updateEffect (options) interface.
trajectoryLength Number 15 optional Track line display length (number of control points), default display 15, requirements must be greater than or equal to 2, otherwise all control points will be displayed.
intervalDistance Number 1.0 optional Track minimum point spacing, unit: meters
lineWidth Number 1 optional Trail line width, unit: pixels
aryGradientColors Array [new SuperMap3D.Color(1,0,0,1)] optional Gradual change color array (up to 5 supported)

Extends

Members

aryGradientColors : Array.<Color>

Gradual change color array (up to 5 settings are supported)

id : String

Effect id

intervalDistance : Number

Track point minimum length interval

lineWidth : Number

Track line width

trajectoryLength : Number

Track line display length (number of control points), default display 15, requirements must be greater than or equal to 2, otherwise all control points will be displayed.

Methods

destroy()

Release resources

fromJSON(jsonObj)

Json object to effect object, note: json object does not contain scene and geoGraphicObject objects, you need to call the corresponding interface settings
Name Type Description
jsonObj Object Json object

getID()String

Get effect ID
Returns:
Effect ID
Inherited From:

getIsUsePlotVisible()Boolean

Whether it is affected by the visibility of the plotting object
Returns:
Whether to update
Inherited From:

isVisible()Boolean

Get visibility
Returns:
Show or hide.
Inherited From:

setGeoGraphicObject(geoGraphicObject)

Set the plotting object of effect binding
Name Type Description
geoGraphicObject GeoGraphicObject Plotting object
Inherited From:

setIsUsePlotVisible(isUse)

Sets whether to update the effect visibility when the plotting object visibility changes
Name Type Description
isUse Boolean Whether to update
Inherited From:

setScene(scene)

Set the scene
Name Type Description
scene Scene 3D scene
Inherited From:

setVisible(visible)Boolean

Set visibility
Name Type Description
visible Boolean Visibility
Returns:
True on success, false otherwise.
Inherited From:

toJSON()String

Effect object to Json object, note: json object does not contain scene and geoGraphicObject objects
Returns:
Json string

updateEffect(options)

Set effect properties
Name Type Description
options Object optional Object with the following properties:
Name Type Description
point MPoint3D optional Location point