跳至主要內容

PathGraphic

大约 1 分钟

PathGraphic

VE.graphic.PathGraphic

路径

参数

new VE.graphic.PathGraphic(options)

options

参数名称类型描述信息
positionsArray.<VE.Point>位置
styleVE.graphic.PathGraphic.StyleOption样式

属性

attr

当前属性

boundingSphere readonly

  • 类型: BoundingSphere

边界

center readonly

中心点

points readonly

实际位置

positions

位置信息

style readonly

方法

addTo (target)

添加到

参数名称类型描述信息
targetMapGroupGraphic

destroy ()

销毁

edit ()

编辑

flyTo ()

飞至

hide ()

隐藏

setOptions (options)

设置属性

参数名称类型描述信息
optionsobject
options.positionVE.Point位置信息
options.positionsArray.<VE.Point>位置信息
options.attrobject属性
options.styleobject样式

show ()

显示

类型定义

VE.graphic.PathGraphic.StyleOption

  • 类型: Object
参数名称类型默认值描述信息
leadTimenumber0要显示的对象前面的秒数.
trailTimenumberInfinity要显示的对象后面的秒数.
widthnumber1以像素为单位指定宽度
materialString#fff颜色.
colorString#fff颜色
clampToGroundbooleanfalse是否贴地.
addHeightnumber在原有高度上增加xx,setHeight优先级更高
setHeightnumber固定高度为xx
下面的不常用
resolutionnumber60指定在对该位置进行采样时要移动的最大秒数
distanceDisplayConditionArrayDistanceDisplayCondition
上次编辑于:
贡献者: dashun