Summary
Methods:
| addMathCell |
添加一个流线要素 |
| pause |
动画暂停 |
| removeAll |
清空流线model中的流线要素 |
| removeMathCellById |
根据该数学模型组成元素的唯一标识符,将对应的元素从数学模型中移除 |
| start |
动画开启 |
Constructor
new FlowModel(options)
流线动画图层,与蝌蚪图类似,缺点是不能设置线宽
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
|
Example
let flowModel=new hmap.geosolution.math.FlowModel({
loop:true
});
Methods
-
addMathCell(flow)
-
添加一个流线要素
Parameters:
Name Type Description flowmodule:geosolution/cell~Flow 流线要素
Throws:
TypeError -参数类型出错,抛出异常。
Example
let coordSeq = new hmap.basetype.CoordSeq[new hmap.basetype.Coordinate(120.13,30.19,0.0),new hmap.basetype.Coordinate(120.43,30.19,0.0)]; let flow = new hmap.geosolution.cell.Flow({coordSeq:coordSeq}); flowModel.addMathCell(flow); -
pause()
-
动画暂停
-
removeAll()
-
清空流线model中的流线要素
Example
flowModel.removeAll() -
removeMathCellById(id)
-
根据该数学模型组成元素的唯一标识符,将对应的元素从数学模型中移除
Parameters:
Name Type Description idString 组成元素的唯一标识符
-
start()
-
动画开启