new Destroy(associatedUuid, options)
Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.3.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
new L.supermap.plotting.Destroy(associatedUuid, options);
</script>
// ES6 Import
import { Destroy } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';
new Destroy(associatedUuid, options);
leaflet/specialeffect/Destroy.js, line 8
Name | Type | Description |
---|---|---|
associatedUuid |
string |
可选
关联标号uuid |
options |
object |
可选
构造参数 |
opotions.durationTime |
string |
可选
摧毁持续时间。 |
- Version:
- 11.2.0
Example
//方式一,直接创建
var destroy = L.supermap.plotting.destroy(associatedUuid, options);
//方式二, 在动目标图层上使用接口创建
var movingTargetLayer = L.supermap.plotting.movingTargetLayer("movingTarget", serverUrl);;
var destroy = movingTargetLayer.createDestroy(associatedUuid, options);
Extends
Members
-
associatedUuidstring
-
摧毁对象关联标号的id。
-
durationTimenumber
-
摧毁特效持续时间
Methods
-
getPosition()
leaflet/specialeffect/Destroy.js, line 233 -
获取关联位置点坐标
-
inherited getType(){SpecialEffectType}
leaflet/specialeffect/BaseEffect.js, line 79 -
获取特效类型
Returns:
Type Description SpecialEffectType 返回特效类型 -
inherited getUuid(){string}
leaflet/specialeffect/BaseEffect.js, line 69 -
获取特效唯一标识符
Returns:
Type Description string 特效uuid -
pause()
leaflet/specialeffect/Destroy.js, line 208 -
停止摧毁特效
-
play()
leaflet/specialeffect/Destroy.js, line 129 -
播放摧毁特效
-
remove()
leaflet/specialeffect/Destroy.js, line 252 -
移除摧毁特效
-
setDurationTime(durationTime)
leaflet/specialeffect/Destroy.js, line 242 -
设置摧毁持续时间
Name Type Description durationTime
number 持续时间(毫秒)
-
setName(name)
leaflet/specialeffect/Destroy.js, line 180 -
设置特效名称
Name Type Description name
string 特效名称
-
setVisible(visible)
leaflet/specialeffect/Destroy.js, line 190 -
设置显隐
Name Type Description visible
boolean 是否显示