geosolution/math~RadarScanModel(options)

地理解决方案数学模型-雷达扫描线模型,注意该模型针对的是地图中所有的图层,图层的深度(参数:depthTest)需要开启,图层的深度补偿(参数:LGD)需要关闭。

Summary

Methods:
addMathCell

添加扫描线元素

removeAll

清空该数学模型中所有的组成元素

removeMathCellById

根据id移除扫描线元素

setImage

重新设置扫描图片

Constructor

new RadarScanModel(options)

雷达扫描线模型构造函数,RadarScanModel是基于帧实现,不支持多个RadarScanModel实例创建。

Parameters:
Name Type Description
options Object

初始化可选项

Name Type Description
imageSrc String

扫描圈纹理,当前只对扩散圈模式module:geosolution/cell~ScatterScan作用。

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

纹理图片路径