Class: Spout

Spout


new Spout(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 "#c1f7f2" 起始颜色
endColor string "#ffffff00" 结束颜色
startScale number 0.2 初始比例
endScale number 2 结束比例
speed number 速度
minimumParticleLife number 12 最小存在时间(秒)
maximumParticleLife number 12 最大存在时间(秒)
emissionRate number 100 发射速率(个/每秒)
particleSize number 1 粒子尺大小
heading 航向角
pitch 俯仰角
start object 开始位置
Properties
Name Type Description
lng 经度
lat 纬度
alt 高度
end object 结束位置
Properties
Name Type Description
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关闭