geosolution/math~FireworksModel(options)

地理解决方案数学模型-烟花

Summary

Methods:
addMathCell

添加模型

removeAll

清空烟花特效model中的烟花要素

removeMathCellById

根据id从烟花特效model中移除烟花要素

Constructor

new FireworksModel(options)

烟花模型构造函数

Parameters:
Name Type Description
options Object

可选项

Name Type Description
depthTest Boolean

是否开启深度测试,默认为false

Example
let fireworksModel=new hmap.geosolution.math.FireworksModel({});

Methods

addMathCell(cell)

添加模型

Parameters:
Name Type Description
cell Fireworks

removeAll()

清空烟花特效model中的烟花要素

Example
fireworksModel.removeAll()

removeMathCellById(id)

根据id从烟花特效model中移除烟花要素

Parameters:
Name Type Description
id String

烟花要素id

Example
fireworksModel.removeMathCellById(idStr);