Summary
Methods:
addMathCell |
添加方量分析要素 |
removeAll |
清空方量分析model中的方量分析元素 |
removeMathCellById |
根据id从方量分析模型中移除元素 |
updateDrawData |
更新绘制数据,发生删除、修改、或添加操作时调用该方法后才会发生绘制数据更改 |
Constructor
new EarthworkVolumeModel()
方量分析模型构造函数
Example
let earthworkVolumeModel= new hmap.geosolution.math.EarthworkVolumeModel();
Methods
-
addMathCell(earthworkVolume)
-
添加方量分析要素
Parameters:
Name Type Description earthworkVolume
module:geosolution/cell~EarthworkVolume 方量分析要素
Example
earthworkVolumeModel.addMathCell(earthworkVolume);
-
removeAll()
-
清空方量分析model中的方量分析元素
Example
earthworkVolumeModel.removeAll()
-
removeMathCellById(id)
-
根据id从方量分析模型中移除元素
Parameters:
Name Type Description id
String 方量分析元素id
Example
earthworkVolumeModel.removeMathCellById(idStr);
-
updateDrawData()
-
更新绘制数据,发生删除、修改、或添加操作时调用该方法后才会发生绘制数据更改
注:每次全量刷新