Class: Smoke

Smoke


new Smoke(sdk, options)

烟雾特效
Parameters:
Name Type Description
sdk
options object 粒子属性
Properties
Name Type Default Description
id string 标注id
show boolean true 显示/隐藏
name string 名称
url string 贴图地址
startColor string "#00000000" 起始颜色
endColor string "#0000001a" 结束颜色
startScale number 0.1 初始比例
endScale number 10 结束比例
minimumSpeed number 10 最小初速度
maximumSpeed number 15 最大初速度
minimumParticleLife number 6 最小存在时间(秒)
maximumParticleLife number 7 最大存在时间(秒)
emissionRate number 28 发射速率(个/每秒)
particleSize number 2 粒子尺大小
lng 经度
lat 纬度
alt 高度
customView object 默认视角
Properties
Name Type Description
orientation object 默认视角方位
Properties
Name Type Description
heading number 航向角
pitch number 俯仰角
roll number 翻滚角
relativePosition object 视角相对位置
Properties
Name Type Description
lng number 经度
lat number 纬度
alt number 高度

Methods


<async> edit(state)

编辑框
Parameters:
Name Type Default Description
state boolean false 状态: true打开, false关闭