Class: goAnimationManager

L.supermap.plotting.goAnimationManager

动画管理类,负责标号动画的管理。

L.supermap.plotting.goAnimationManager(map, serverUrl)

leaflet/plot/GOAnimationManager.js, line 14
Name Type Description
map L.map

地图。

serverUrl string

标绘服务地址。

Members

goAnimationsArray.<L.supermap.plotting.GOAnimation>

动画数组。

Methods

createGOAnimation(animationType, name, goFeature){L.supermap.plotting.GOAnimation}

leaflet/plot/GOAnimationManager.js, line 121

创建动画。

Name Type Description
animationType SuperMap.Plot.GOAnimationType

动画类型。

name string

动画名称。

goFeature GraphicObject

动画原始几何对象。

Returns:
Type Description
L.supermap.plotting.GOAnimation 动画对象。

destroy()

leaflet/plot/GOAnimationManager.js, line 72

销毁对象,释放资源。

execute(){boolean}

leaflet/plot/GOAnimationManager.js, line 268

执行动画。

Returns:
Type Description
boolean 有动画执行则返回true,否则返回false。

findGOAnimationByName(name){L.supermap.plotting.GOAnimation}

leaflet/plot/GOAnimationManager.js, line 154

根据动画名称查找动画。

Name Type Description
name string

动画名称。

Returns:
Type Description
L.supermap.plotting.GOAnimation 动画对象。

findGOAnimationByUuid(uuid){L.supermap.plotting.GOAnimation}

leaflet/plot/GOAnimationManager.js, line 197

根据uuid查找动画。

Name Type Description
uuid string

用户定义的唯一ID。

Returns:
Type Description
L.supermap.plotting.GOAnimation 动画对象。

findGOAnimationsByFeature(goFeature){Array.<L.supermap.plotting.GOAnimation>}

leaflet/plot/GOAnimationManager.js, line 176

根据动画原始几何对象查找动画。

Name Type Description
goFeature L.supermap.plotting.GraphicObject

动画原始几何对象。

Returns:
Type Description
Array.<L.supermap.plotting.GOAnimation> 动画对象。

fromJSONData(jsonData)

leaflet/plot/GOAnimationManager.js, line 451

根据动画json数据创建动画。

Name Type Description
jsonData Object

动画json数据。

getJSONData(){Object}

leaflet/plot/GOAnimationManager.js, line 437

获取动画json数据。

Returns:
Type Description
Object 动画json数据。

pause()

leaflet/plot/GOAnimationManager.js, line 358

暂停所有动画。

play()

leaflet/plot/GOAnimationManager.js, line 330

播放所有动画。

removeAllGOAnimation()

leaflet/plot/GOAnimationManager.js, line 252

删除所有动画。

removeGOAnimation(goAnimation){boolean}

leaflet/plot/GOAnimationManager.js, line 229

删除动画。

Name Type Description
goAnimation L.supermap.plotting.GOAnimation

动画对象。

Returns:
Type Description
boolean 是否删除成功。

removeGOAnimationByName(name){boolean}

leaflet/plot/GOAnimationManager.js, line 214

根据名称删除动画。

Name Type Description
name string

动画名称。

Returns:
Type Description
boolean 是否删除成功。

reset()

leaflet/plot/GOAnimationManager.js, line 372

复位所有动画。

setMap(map){boolean}

leaflet/plot/GOAnimationManager.js, line 87

设置地图对象。

Name Type Description
map L.map

地图对象。

Returns:
Type Description
boolean 设置成功返回true,否则返回false。

stop()

leaflet/plot/GOAnimationManager.js, line 344

停止所有动画。