Class: GOAnimationBlink

GOAnimationBlink

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

leaflet/animation/GOAnimationBlink.js, line 8
Name Type Description
options Object

闪烁动画参数。

Name Type Default Description
name string 可选

动画名称。

startTime number 0.0 可选

动画开始时间。

duration number 5 可选

动画时长,以秒为单位。

repeat boolean false 可选

是否循环播放动画。

blinkInterval number 500 可选

闪烁间隔,单位为毫秒。

blinkStyle BlinkAnimationBlinkStyle BlinkAnimationBlinkStyle.Blink_Frequency 可选

闪烁类型。

blinkNumber number 0 可选

闪烁次数。

replaceStyle BlinkAnimationReplaceStyle BlinkAnimationReplaceStyle.Replace_NoColor 可选

颜色交替类型。

startColor string "#0000FF" 可选

开始颜色。

endColor string "#FF0000" 可选

结束颜色。

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

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

Extends

Members

blinkIntervalnumber

闪烁间隔,单位为毫秒。

blinkNumbernumber

闪烁次数。

闪烁类型。

captionstring

动画别名。

durationnumber

动画时长,单位为秒。

endColorstring

结束颜色,默认为红色。

namestring

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

repeatboolean

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

颜色交替类型。

startColorstring

开始颜色,默认为蓝色。

startTimenumber

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

startVisiableboolean

开始状态 true 显示 false 隐藏

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/GOAnimationBlink.js, line 83

获取动画类型。

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

停止。