GeoGraphicObject

标绘符号类

new Cesium.GeoGraphicObject(options)

Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
libID Number optional 标号的LibID
code Number optional 标号的code
localPoints Array optional 标号的位置点
symbolName String optional 标号名字
symbolType SymbolType optional 标号类型
display Boolean true optional 是否可见
showTipLength Number optional 注记柄高度
markHalo Boolean optional 是否显示注记框
symbolStyle SymbolStyle optional 标号风格
symbolTextStyle SymbolTextStyle optional 文本风格
isUseSymbolLibStyle Boolean optional 是否使用标号库默认风格
annotationArray Array.<SymbolAnnotation> optional 多注记数组
layer Layer optional 当前的layer
viewer Viewer optional 当前的viewer

Members

code : Number

标号编码
Default Value: -1

display

对象的可见性
Default Value: true

dotDepthTest : Boolean

点标号公告板模式是否启用深度检测
Default Value: true

id : String

标号id

readonlylayer

当前图层

libID : Number

标号库ID
Default Value: -1

localPoints : Array.<PlotPoint3D>

标号位置点
Default Value: []

markHalo

是否有注记边框
Default Value: true

readonlymiddleMarkExist

是否存在中间注记
Default Value: false

showTipLength

注记柄高度
Default Value: 100

symbolName : String

标号名称
Default Value: ""

symbolStyle

标号风格
Default Value: new SymbolStyle()

readonlysymbolType : SymbolType

标号类型
Default Value: SymbolType.SYMBOL_UNKNOW

wholeHeight : Number

标号整体高度

Methods

addGeoEffect(effect)Array

Name Type Description
effect PlotGeoEffectBase
Returns:
特效数组

getGeoEffectArray()Array

Returns:
特效数组

getGeoEffectByID(id)PlotGeoEffectBase

Name Type Description
id String 特效id
Returns:
特效

getGeoEntity()Object

获取实体对象
Returns:
实体对象

getMaxEditPts()Number

获取标号最大编辑点
Returns:
获取标号最大编辑点

getMinEditPts()Number

获取标号最小编辑点
Returns:
标号最小编辑点

removeAllGeoEffect()

removeGeoEffectByID(id)

Name Type Description
id Number 特效ID

removeGeoEffectByIndex(index)

Name Type Description
index Number 特效索引

setAnnotationArray(index, optionName, value)boolean

修改指定索引多注记属性
Name Type Description
index 索引
optionName 属性名字("textContent"、"localPoint"、"fontName"、"foreColor"、"fontSize"、"outlineWidth"、"outlineColor"、"outline")
value 属性值
Returns:

setGeoEntity()Object

设置实体对象
Returns:
实体对象

toGeoJson()String

将标号转为GeoJson
Returns:
转换后的GeoJson数据