new SuperMap.Plot.Trajectory(trajectoryLength, showTrackingLine, showTrackingPoint, style, options)
common/plot/Trajectory.js, line 5
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trajectoryLength |
number |
轨迹线显示长度,默认显示15个,-1为全部显示。 |
||||||||||||
showTrackingLine |
boolean |
是否显示轨迹线。 |
||||||||||||
showTrackingPoint |
boolean |
是否显示轨迹点。 |
||||||||||||
style |
style |
轨迹线风格。 |
||||||||||||
options |
Object |
轨迹线参数。
|
Members
-
saveTrackingPointboolean
-
是否存储历史轨迹点,即不显示的轨迹点是否存储。默认为不存储。不建议存储,存储历史轨迹可能导致内存不够的情况。
-
showTrackingLineboolean
-
是否显示轨迹线。默认为显示。
-
showTrackingPointboolean
-
是否显示轨迹点。默认为不显示。
-
stylestyle
-
轨迹线风格。
-
trackingPointRadiusnumber
-
轨迹点样式大小。
-
trackingPointStylenumber
-
轨迹点样式,0为实体圆、1为空心圆、2为实心三角、3为空心三角、4为十字。
-
trajectoryLengthnumber
-
轨迹线长度,即轨迹线显示的点个数。默认为15个,如果该值设置为-1则全部显示。
Methods
-
addLatLng()
common/plot/Trajectory.js, line 92 -
添加位置点。
-
clone(){SuperMap.Plot.Trajectory}
common/plot/Trajectory.js, line 186 -
克隆对象标注对象。
Returns:
Type Description SuperMap.Plot.Trajectory 克隆后的对象标注对象。 -
destroy()
common/plot/Trajectory.js, line 173 -
销毁图形对象数据。
-
getDisplayLatLngs()
common/plot/Trajectory.js, line 114 -
获取可显示位置点。
-
parseSymbolData(){SuperMap.Plot.Trajectory}
common/plot/Trajectory.js, line 221 -
解析对象标注数据。
Returns:
Type Description SuperMap.Plot.Trajectory 解析对象标注数据。 -
setSymbolData(){SuperMap.Plot.Trajectory}
common/plot/Trajectory.js, line 204 -
设置对象标注数据。
Returns:
Type Description SuperMap.Plot.Trajectory 设置对象标注数据。