Class: BillboardRoaming

Glodon.CIMCube.Animation.Effect. BillboardRoaming

锚点漫游

new BillboardRoaming(map, opt)

锚点漫游
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opt Object 锚点漫游参数
Properties
Name Type Description
billboard BillboardGraphic billboard对象;
pathList Array 路线特效数据;[{lon,lat,height},{lon,lat,height}...]
reverseDirection 方向翻转,true/false
duration Number 动画时长,跑完全程所花费的时间,默认10秒
speed Number 动画速度;单位为m/s,speed比duration优先级高,默认为undefined
startPercent Number 动画开始时间(入场动画);范围:0~1;

Members


arriveAtDesignatedPoint :Number

到达目标点
Type:
  • Number

pause :Boolean

暂停
Type:
  • Boolean

percent :Number

动画完成百分比
Type:
  • Number

startPercent :Number

到达百分比目标点
Type:
  • Number

Methods


dispose()

释放资源

hide()

隐藏

setPathData(pathList)

设置路径
Parameters:
Name Type Description
pathList Array 路线特效数据;[{lon,lat,height},{lon,lat,height}...]

show()

显示

updateOption(opt)

更新属性
Parameters:
Name Type Description
opt Object 更新参数
Properties
Name Type Description
billboard BillboardGraphic billboard对象;
pathList Array 路线特效数据;[{lon,lat,height},{lon,lat,height}...]
reverseDirection 方向翻转,true/false
duration Number 动画时长,跑完全程所花费的时间,默认10秒
speed Number 动画速度;单位为m/s,speed比duration优先级高,默认为undefined
startPercent Number 动画开始时间(入场动画);范围:0~1;