跳至主要內容

CorridorGraphic

大约 2 分钟

CorridorGraphic

VE.graphic.CorridorGraphic

走廊

参数

new VE.graphic.CorridorGraphic(options)

options

参数名称类型描述信息
positionsArray.<VE.Point>位置
styleVE.graphic.CorridorGraphic.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.CorridorGraphic.StyleOption

  • 类型: Object
参数名称类型默认值描述信息
widthnumber宽度.
heightnumber0走廊相对于椭球面的高度.
extrudedHeightnumber0多边形的凸出面相对于椭球面的高度.
materialStringMaterialPropertyColor
colorString#fff颜色
outlineColorString#000轮廓的颜色
outlineWidthnumber1轮廓的宽度
cornerTypeStringROUNDED拐角的样式(ROUNDED光滑,MITERED拐角,BEVELED裁剪)
clampToGroundbooleanfalse是否贴地.
下面的不常用
zIndexnumber0层级顺序,指定用于排序地面几何的zIndex。只有当'clampToGround'为true且支持地形上的折线时才会有效果.
heightReferenceArrayHeightReferenceHeightReference.NONE
extrudedHeightReferenceArrayHeightReferenceHeightReference.NONE
下面的基本不用
granularitynumberCesium.Math.RADIANS_PER_DEGREE指定每个纬度和经度点之间的角距离.
stRotationnumber0用于指定多边形纹理从北方逆时针旋转.
granularitynumberCesium.Math.RADIANS_PER_DEGREE如果arcType不是arcType.none,则指定每个纬度和经度之间的角距离的数字属性.
shadowsStringShadowModeShadowMode.DISABLED
distanceDisplayConditionArrayDistanceDisplayCondition
classificationTypeStringClassificationTypeClassificationType.BOTH
上次编辑于:
贡献者: dashun