Class: Dynamic

Glodon.CIMCube.Animation.PlaneEffect. Dynamic

动态面

new Dynamic(viewer, opt)

动态面
Parameters:
Name Type Description
viewer Glodon.CIMCube CIMCube实例
opt Object 动态面参数
Properties
Name Type Argument Default Description
pathList Array 路径{lon,lat,height}
imageUrl String 图片路径
color Color 颜色;设置颜色场合,就不会使用图片中的颜色,只使用图片的透明度;设置为白色场合,相当于没有传递颜色
duration Number <optional>
1 动画时长;
direction number <optional>
0.0 动画方向;

Methods


createPlane()

创建动态面。

dispose()

释放资源

hide()

隐藏动态面

setPathData(pl)

设置路径数据。
Parameters:
Name Type Description
pl Object 路径。

show()

显示动态面

updateMyOption(opt)

更新参数。
Parameters:
Name Type Description
opt Object 参数。
Properties
Name Type Argument Description
imageUrl String 图片地址。
duration Number <optional>
时长。
direction number <optional>
方向。
color Color 颜色。

updateOption(opt)

更新参数
Parameters:
Name Type Description
opt Object 动态面参数
Properties
Name Type Argument Description
imageUrl String 图片路径
color Color 颜色;设置颜色场合,就不会使用图片中的颜色,只使用图片的透明度;设置为白色场合,相当于没有传递颜色
duration Number <optional>
动画时长;
direction number <optional>
动画方向;