L.supermap.plotting.GOAnimationWay(options)
leaflet/animation/GOAnimationWay.js, line 7
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
路径动画参数。
|
Extends
Members
-
currentPtL.LatLng
-
路径动画当前位置点。
-
durationDouble
-
动画时长,单位为秒。
-
namestring
-
动画名称,动画的唯一标识。
-
repeatboolean
-
是否重复循环播放,默认为false。
-
startTimeDouble
-
动画开始时间,单位为秒。
-
tangentDirectionboolean
-
是否沿切线方向。
Methods
-
destroy()
leaflet/animation/GOAnimationWay.js, line 95 -
销毁对象,释放资源。
-
getCurrentPt(){L.LatLng}
leaflet/animation/GOAnimationWay.js, line 239 -
获取路径动画当前位置。
Returns:
Type Description L.LatLng 动画路径当前位置点。 -
getGOAnimationType(){SuperMap.Plot.GOAnimationType}
leaflet/animation/GOAnimationWay.js, line 110 -
获取动画类型。
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 动画原始几何对象。 -
getPathColor(){string}
leaflet/animation/GOAnimationWay.js, line 268 -
获取路径线颜色。
Returns:
Type Description string 路径线颜色。 -
getPathType(){SuperMap.Plot.WayPathType}
leaflet/animation/GOAnimationWay.js, line 330 -
获取路径线类型。
Returns:
Type Description SuperMap.Plot.WayPathType 路径线类型。 -
getPathWidth(){float}
leaflet/animation/GOAnimationWay.js, line 296 -
获取路径线宽度。
Returns:
Type Description float 路径线宽度。 -
getWayPoints(){Array.<L.LatLng>}
leaflet/animation/GOAnimationWay.js, line 230 -
获取路径动画点数组。
Returns:
Type Description Array.<L.LatLng> 路径点数组。 -
inherited pause()
leaflet/animation/GOAnimation.js, line 210 -
暂停。
-
inherited play()
leaflet/animation/GOAnimation.js, line 178 -
播放。
-
inherited reset()
leaflet/animation/GOAnimation.js, line 220 -
复位。
-
setPathColor(color)
leaflet/animation/GOAnimationWay.js, line 248 -
设置路径线颜色。
Name Type Description color
string 路径线颜色。
-
setPathType(pathType)
leaflet/animation/GOAnimationWay.js, line 305 -
设置路径线类型。
Name Type Description pathType
SuperMap.Plot.WayPathType 路径线类型。
-
setPathWidth(width)
leaflet/animation/GOAnimationWay.js, line 277 -
设置路径线宽度。
Name Type Description width
float 路径线宽度。
-
setShowPath(value)
leaflet/animation/GOAnimationWay.js, line 119 -
设置是否显示动画路径。
Name Type Description value
boolean 是否显示路径。
-
setWayPoints(pts)
leaflet/animation/GOAnimationWay.js, line 207 -
设置路径动画点数组。
Name Type Description pts
Array.<L.LatLng> 路径点数组。
-
inherited stop()
leaflet/animation/GOAnimation.js, line 202 -
停止。