Summary
Methods:
addMathCell |
添加水填充特效 |
removeAll |
清空水填充特效model中的水填充要素 |
removeMathCellById |
根据id从水填充特效model中移除水填充要素 |
Constructor
new FillWaterModel()
水填充模型构造函数
Parameters:
Name | Type | Description |
---|---|---|
options.effect |
module:style~Color | 水填充效果,当前有两种效果,具体参考demo,默认为1即效果1,当前有1、2可选。 |
options.color |
module:style~Color | 水填充的颜色,默认为'hmap.style.Color(0,115,250)',当effect参数为2时此项设置无效。 |
options.speed |
Number | 波浪速度,取值为大于0的数值,默认为1,当effect参数为2时此项设置无效。 |
options.waveScale |
Number | 波浪大小,取值为大于0的数值,默认为1,当effect参数为2时此项设置无效。 |
options.depthTest |
Boolean | 是否开启深度测试,默认为false |
Example
let fillwaterModel=new hmap.geosolution.math.FillWaterModel({
effect:1,
color:new Color(0,0,180)
});
Methods
-
addMathCell(fillwater)
-
添加水填充特效
Parameters:
Name Type Description fillwater
module:geosolution/cell~FillWater 水填充要素
Example
fillWaterModel.addMathCell(fillwater);
-
removeAll()
-
清空水填充特效model中的水填充要素
Example
fillWaterModel.removeAll()
-
removeMathCellById(id)
-
根据id从水填充特效model中移除水填充要素
Parameters:
Name Type Description id
String 水填充要素id
Example
fillWaterModel.removeMathCellById(idStr);