geosolution/math~FillFilterModel()

地理解决方案数学模型-图层过滤显示,即挖洞,通常用于挖空图层以显示地下内容,当前支持TerrainLayer、S3MLayer、Tile3DLayer,不支持多个FillFilterModel的使用。

Summary

Methods:
addMathCell

添加图层过滤要素

removeAll

清空图层过滤model中的图层过滤要素

removeMathCellById

根据id从图层过滤model中移除图层过滤要素

updateDrawData

更新绘制数据,发生删除、修改、或添加操作时调用该方法后才会发生绘制数据更改
注:每次全量刷新

Constructor

new FillFilterModel()

图层过滤显示模型构造函数

Example
let fillFilterModel = new hmap.geosolution.math.FillFilterModel({
});

Methods

addMathCell(fillFilter)

添加图层过滤要素

Parameters:
Name Type Description
fillFilter module:geosolution/cell~FillFilter

图层过滤要素

Example
fillFilterModel.addMathCell(fillFilter);

removeAll()

清空图层过滤model中的图层过滤要素

Example
fillFilterModel.removeAll()

removeMathCellById(id)

根据id从图层过滤model中移除图层过滤要素

Parameters:
Name Type Description
id String

图层过滤要素id

Example
fillFilterModel.removeMathCellById(idStr);

updateDrawData()

更新绘制数据,发生删除、修改、或添加操作时调用该方法后才会发生绘制数据更改
注:每次全量刷新