Class: GOAnimationAttribute

GOAnimationAttribute

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

new GOAnimationAttribute(options)

leaflet/animation/GOAnimationAttribute.js, line 9
Name Type Description
options Object

属性动画参数。

Name Type Default Description
name string 可选

动画名称。

startTime number 0.0 可选

动画开始时间。

duration number 5 可选

动画时长,以秒为单位。

repeat boolean false 可选

是否循环播放动画。

lineColorAnimation boolean false 可选

线色动画是否有效。

startLineColor string "#FF0000" 可选

开始线色。

endLineColor string "#0000FF" 可选

结束线色。

lineWidthAnimation boolean false 可选

线宽动画是否有效。

startLineWidth number 0 可选

开始线宽。

endLineWidth number 5 可选

结束线宽。

surroundLineColorAnimation boolean false 可选

衬线线色动画是否有效。

startSurroundLineColor string "#FFFF00" 可选

开始衬线线色。

endSurroundLineColor string "#00FFFF" 可选

结束衬线线色。

surroundLineWidthAnimation boolean false 可选

衬线线宽动画是否有效。

startSurroundLineWidth number 0 可选

开始衬线宽。

endSurroundLineWidth number 1 可选

结束衬线宽。

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

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

Extends

Members

captionstring

动画别名。

durationnumber

动画时长,单位为秒。

endLineColorstring

结束线色。

endLineWidthnumber

结束线宽。

endSurroundLineColorstring

结束衬线线色。

endSurroundLineWidthnumber

结束衬线宽。

lineColorAnimationboolean

线色动画是否有效。

lineWidthAnimationboolean

线宽动画是否有效。

namestring

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

repeatboolean

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

startLineColorstring

开始线色。

startLineWidthnumber

开始线宽。

startSurroundLineColorstring

开始衬线线色。

startSurroundLineWidthnumber

开始衬线宽。

startTimenumber

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

surroundLineColorAnimationboolean

衬线线色动画是否有效。

surroundLineWidthAnimationboolean

衬线线宽动画是否有效。

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/GOAnimationAttribute.js, line 115

获取动画类型。

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

停止。