Class: GOAnimationScale

GOAnimationScale

动态标绘比例动画类,通过动画管理器GOAnimationManager#createGOAnimation接口创建比例动画。

new GOAnimationScale(options)

leaflet/animation/GOAnimationScale.js, line 7
Name Type Description
options Object

比例动画参数。

Name Type Default Description
name string 可选

动画名称。

startTime number 0.0 可选

动画开始时间。

duration number 5 可选

动画时长,以秒为单位。

repeat boolean false 可选

是否循环播放动画。

startScale number 0 可选

开始比例。

endScale number 1 可选

结束比例。

Example
//获取动画管理器
  var plotting = L.supermap.plotting.getControl(map, serverUrl);
  var goAnimationManager = plotting.getGOAnimationManager();

  //根据动画类型创建对象
  var animationType = SuperMap.Plot.GOAnimationType.ANIMATION_SCALE;
  var feature = editControl.getSelectedFeatures()[0];
  var goAnimation = goAnimationManager.createGOAnimation(animationType,goAnimationName,feature);

Extends

Members

captionstring

动画别名。

durationnumber

动画时长,单位为秒。

endScalenumber

结束比例。

namestring

动画名称,动画的唯一标识。

repeatboolean

是否重复循环播放,默认为false。

startScalenumber

开始比例。

startTimenumber

动画开始时间,单位为秒。

Methods

inherited destroy()

leaflet/animation/GOAnimation.js, line 159

销毁对象,释放资源。

inherited getAnimationPlayType(){AnimationPlayType}

leaflet/animation/GOAnimation.js, line 304

获取动画的播放模式, 仅扩展类动画支持获取动画播放模式。

Returns:
Type Description
AnimationPlayType 播放模式。

inherited getDuration(){number}

leaflet/animation/GOAnimation.js, line 280

获取动画的时长。

Returns:
Type Description
number 动画时长。

getGOAnimationType(){GOAnimationType}

leaflet/animation/GOAnimationScale.js, line 50

获取动画类型。

Returns:
Type Description
GOAnimationType 动画类型。

inherited getGOFeature(){GraphicObject}

leaflet/animation/GOAnimation.js, line 234

获取动画的原始几何对象。

Returns:
Type Description
GraphicObject 动画原始几何对象。

inherited getPlaySpeed(){number}

leaflet/animation/GOAnimation.js, line 508

获取动画播放倍速

Returns:
Type Description
number
  • 播放倍数

inherited getStartTime(){number}

leaflet/animation/GOAnimation.js, line 269

获取动画的开始时间。

Returns:
Type Description
number 动画的开始时间。

inherited pause()

leaflet/animation/GOAnimation.js, line 382

暂停。

inherited play()

leaflet/animation/GOAnimation.js, line 330

播放。

inherited reset()

leaflet/animation/GOAnimation.js, line 394

复位。

inherited setAnimationPlayType(playType)

leaflet/animation/GOAnimation.js, line 313

设置动画播放模式, 仅扩展类动画支持设置动画播放模式。

Name Type Description
playType AnimationPlayType

动画播放模式。

inherited setDuration(startTime)

leaflet/animation/GOAnimation.js, line 288

设置动画的时长。

Name Type Description
startTime number

动画时长。

inherited setFastForWardTime(forWardTime)

leaflet/animation/GOAnimation.js, line 543

设置动画快进时间时长

Name Type Description
forWardTime number

动画快进时长。

inherited setPlaySpeed(playSpeed)

leaflet/animation/GOAnimation.js, line 518

设置动画播放倍速

Name Type Description
playSpeed number

动画播放倍速。

inherited setRewindTime(rewindTime)

leaflet/animation/GOAnimation.js, line 562

设置动画快退时间时长

Name Type Description
rewindTime number

动画快退时长。

inherited setStartTime(startTime){number}

leaflet/animation/GOAnimation.js, line 242

设置动画的起始时间。

Name Type Description
startTime number

动画起始时间。

Returns:
Type Description
number 动画起始时间。

inherited stop()

leaflet/animation/GOAnimation.js, line 372

停止。