Summary
Methods:
addMathCell |
添加蜂窝热力图 |
removeAll |
清空蜂窝热力图model中的蜂窝热力图要素 |
removeMathCellById |
根据id从蜂窝热力图model中移除蜂窝热力图要素 |
setDimension |
设置热力图模型维度 |
Constructor
new HexGridHeatModel(options)
构造函数
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 选填项
|
Methods
-
addMathCell(hexGridHeat)
-
添加蜂窝热力图
Parameters:
Name Type Description hexGridHeat
module:geosolution/cell~HexGridHeat 蜂窝热力图要素
Example
hexGridHeatModel.addMathCell(hexGridHeat);
-
removeAll()
-
清空蜂窝热力图model中的蜂窝热力图要素
Example
hexGridHeatModel.removeAll()
-
removeMathCellById(id)
-
根据id从蜂窝热力图model中移除蜂窝热力图要素
Parameters:
Name Type Description id
String 蜂窝热力图要素id
Example
hexGridHeatModel.removeMathCellById(idStr);
-
setDimension(dimension)
-
设置热力图模型维度
Parameters:
Name Type Default Description dimension
Number 2 热力图模型维度,取值为2或者3,默认为2