Members
-
captionstring
-
动画别名。
-
durationnumber
-
动画时长,单位为秒。
-
namestring
-
动画名称,动画的唯一标识。
-
repeatboolean
-
是否重复循环播放,默认为false。
-
startTimenumber
-
动画开始时间,单位为秒。
Methods
-
destroy()
leaflet/animation/GOAnimation.js, line 159 -
销毁对象,释放资源。
-
getAnimationPlayType(){AnimationPlayType}
leaflet/animation/GOAnimation.js, line 304 -
获取动画的播放模式, 仅扩展类动画支持获取动画播放模式。
Returns:
Type Description AnimationPlayType 播放模式。 -
getDuration(){number}
leaflet/animation/GOAnimation.js, line 280 -
获取动画的时长。
Returns:
Type Description number 动画时长。 -
getGOFeature(){GraphicObject}
leaflet/animation/GOAnimation.js, line 234 -
获取动画的原始几何对象。
Returns:
Type Description GraphicObject 动画原始几何对象。 -
getPlaySpeed(){number}
leaflet/animation/GOAnimation.js, line 508 -
获取动画播放倍速
Returns:
Type Description number - 播放倍数
-
getStartTime(){number}
leaflet/animation/GOAnimation.js, line 269 -
获取动画的开始时间。
Returns:
Type Description number 动画的开始时间。 -
pause()
leaflet/animation/GOAnimation.js, line 382 -
暂停。
-
play()
leaflet/animation/GOAnimation.js, line 330 -
播放。
-
reset()
leaflet/animation/GOAnimation.js, line 394 -
复位。
-
setAnimationPlayType(playType)
leaflet/animation/GOAnimation.js, line 313 -
设置动画播放模式, 仅扩展类动画支持设置动画播放模式。
Name Type Description playType
AnimationPlayType 动画播放模式。
-
setDuration(startTime)
leaflet/animation/GOAnimation.js, line 288 -
设置动画的时长。
Name Type Description startTime
number 动画时长。
-
setFastForWardTime(forWardTime)
leaflet/animation/GOAnimation.js, line 543 -
设置动画快进时间时长
Name Type Description forWardTime
number 动画快进时长。
-
setPlaySpeed(playSpeed)
leaflet/animation/GOAnimation.js, line 518 -
设置动画播放倍速
Name Type Description playSpeed
number 动画播放倍速。
-
setRewindTime(rewindTime)
leaflet/animation/GOAnimation.js, line 562 -
设置动画快退时间时长
Name Type Description rewindTime
number 动画快退时长。
-
setStartTime(startTime){number}
leaflet/animation/GOAnimation.js, line 242 -
设置动画的起始时间。
Name Type Description startTime
number 动画起始时间。
Returns:
Type Description number 动画起始时间。 -
stop()
leaflet/animation/GOAnimation.js, line 372 -
停止。