GeoAnimationGrow

生长动画

new Cesium.GeoAnimationGrow(options)

Name Type Description
options Object optional 参数选项:
Name Type Default Description
id String optional 动画唯一编号
name String optional 动画名称
startTime Number 0 optional 开启时间,单位秒,0:0秒后开始
duration Number 3 optional 持续时间,单位秒
repeat Boolean false optional 是否重复循环播放动画
element GeoElement optional 元素对象
Author:
  • liuck
Example:
var singleArrowElement = new Cesium.GeoSingleArrowElement({
        viewer: viewer,
        positions: [
            [106.50255907979172, 30.124293956577112],
            [109.57560428200443, 28.695531735044707],
            [112.19039125075413, 29.356410433383108],
            [114.08748761156725, 30.56765059559664]
        ],
        lineColor: new Cesium.Color(0, 1, 1, 1),
        lineWidth: 1,
        lineStyle: GeoElement.LINE_STYLE.SOLID,
        fillMode: "gradient",
        fillColor: new Cesium.Color(0, 0, 1, 1),
        fillStartColor: new Cesium.Color(0, 0, 1, 1),
        fillEndColor: new Cesium.Color(0, 1, 0, 1),
        visibleSwallowTail: true
    })

    var animation = new Cesium.GeoAnimationGrow({
        name: '单箭头,多途径点的生长动画',
        startTime: 0,
        duration: 5,
        element: singleArrowElement
    });

    animation.play();

Extends

Members

readonlyonStop : Event

动画播放完成时事件
Inherited From:

Methods

destroy()

销毁

pause()

暂停
Inherited From:

play()

播放
Inherited From:

reset()

重置
Inherited From:

stop()

停止
Inherited From: