Summary
Methods:
addMathCell |
添加一个点轨迹要素 |
pause |
动画暂停 |
removeAll |
清空点轨迹模型中的点轨迹要素 |
removeMathCellById |
根据id从点轨迹模型中移除点轨迹要素 |
start |
动画开启 |
Constructor
new TracePointModel(options)
点轨迹模型
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|
Example
let flowModel=new hmap.geosolution.math.TracePointModel({
needLoop:true,
colorAddition:false
});
Methods
-
addMathCell(tracePoint)
-
添加一个点轨迹要素
Parameters:
Name Type Description tracePoint
module:geosolution/cell~TracePoint 点轨迹要素
Throws:
TypeError -参数类型出错,抛出异常。
Example
let coordSeq = new hmap.basetype.CoordSeq[coord1,coord2]; let trace = new hmap.geosolution.cell.tracePoint({ coordSeq:coordSeq }); tracePointModel.addMathCell(trace);
-
pause()
-
动画暂停
-
removeAll()
-
清空点轨迹模型中的点轨迹要素
Example
tracePointModel.removeAll()
-
removeMathCellById(id)
-
根据id从点轨迹模型中移除点轨迹要素
Parameters:
Name Type Description id
String 点轨迹要素id
-
start()
-
动画开启