geosolution/cell~ElectricShield(options)

电子盾模型module:geosolution/math~ElectricShieldModel的组成元素-电子盾要素。

Summary

Methods:
destroy

销毁电子盾要素,注意如果已经添加到ElectricShieldModel,需要先从ElectricShieldModel中移除后再销毁

getId

获取电子盾要素的id值

Constructor

new ElectricShield(options)

电子盾要素的构造函数

Parameters:
Name Type Description
options Object

初始化可选项

Name Type Description
center module:basetype~Coordinate

电子盾要素的中心点位置,默认值为new hmap.basetype.Coordinate(0,0,0)。

radius Number

电子盾要素的半径,大于0的数值,单位与module:initState~initState.linearUnit设置的一致,可以通过地图对象上的getDegreePerMeter和getMeterPerDegree方法,对地图单位进行度和米的转换,默认为0.01。

color module:style~Color

显示颜色。默认值new hmap.style.Color(153,153,255,1)。

speed Number

动画变化速度,大于0的数值,默认为0.01。

Methods

destroy()

销毁电子盾要素,注意如果已经添加到ElectricShieldModel,需要先从ElectricShieldModel中移除后再销毁

getId() → {String}

获取电子盾要素的id值

Returns:
String -

电子盾要素的id值