Class: GOAnimationAttribute

L.supermap.plotting.GOAnimationAttribute

动态标绘属性动画类。

L.supermap.plotting.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 可选

结束衬线宽。

Extends

Members

durationDouble

动画时长,单位为秒。

endLineColorstring

结束线色。

endLineWidthnumber

结束线宽。

endSurroundLineColorstring

结束衬线线色。

endSurroundLineWidthnumber

结束衬线宽。

lineColorAnimationboolean

线色动画是否有效。

lineWidthAnimationboolean

线宽动画是否有效。

namestring

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

repeatboolean

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

startLineColorstring

开始线色。

startLineWidthnumber

开始线宽。

startSurroundLineColorstring

开始衬线线色。

startSurroundLineWidthnumber

开始衬线宽。

startTimeDouble

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

surroundLineColorAnimationboolean

衬线线色动画是否有效。

surroundLineWidthAnimationboolean

衬线线宽动画是否有效。

Methods

inherited destroy()

leaflet/animation/GOAnimation.js, line 97

销毁对象,释放资源。

getGOAnimationType(){SuperMap.Plot.GOAnimationType}

leaflet/animation/GOAnimationAttribute.js, line 106

获取动画类型。

Returns:
Type Description
SuperMap.Plot.GOAnimationType 动画类型。

inherited getGOFeature(){L.supermap.plotting.GraphicObject}

leaflet/animation/GOAnimation.js, line 169

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

Returns:
Type Description
L.supermap.plotting.GraphicObject 动画原始几何对象。

inherited pause()

leaflet/animation/GOAnimation.js, line 210

暂停。

inherited play()

leaflet/animation/GOAnimation.js, line 178

播放。

inherited reset()

leaflet/animation/GOAnimation.js, line 220

复位。

inherited stop()

leaflet/animation/GOAnimation.js, line 202

停止。