Summary
Methods:
addMathCell |
添加扫描线元素 |
removeAll |
清空该数学模型中所有的组成元素 |
removeMathCellById |
根据id移除扫描线元素 |
setImage |
重新设置扫描图片 |
Constructor
new RadarScanModel(options)
雷达扫描线模型构造函数,RadarScanModel是基于帧实现,不支持多个RadarScanModel实例创建。
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object | 初始化可选项
|
Example
let radarScanModel=new hmap.geosolution.math.RadarScanModel({
imageSrc:'radar.png'
});
Methods
-
addMathCell(radar)
-
添加扫描线元素
Parameters:
Name Type Description radar
module:geosolution/cell~RadarScan 扫描线元素
Example
radarScanModel.addMathCell(radar);
-
removeAll()
-
清空该数学模型中所有的组成元素
-
removeMathCellById(id)
-
根据id移除扫描线元素
Parameters:
Name Type Description id
Example
radarModelModel.removeMathCellById(id);
-
setImage(imgSrc)
-
重新设置扫描图片
Parameters:
Name Type Description imgSrc
String 纹理图片路径