GeoGraphicObject

new Cesium.GeoGraphicObject(options)

Plotting symbols
Name Type Description
options Object optional The object has the following properties:
Name Type Default Description
libID Number optional Labeled LibID
code Number optional Labeled code
localPoints Array optional Labeled position
symbolName String optional Labeled name
symbolType SymbolType optional Labeled type
visible Boolean true optional Visible (optional)
showTipLength Number optional Note handle height
markHalo Boolean optional Display checkbox (optional)
symbolStyle SymbolStyle optional Label style
symbolTextStyle symbolTextStyle optional Text style
isUseSymbolLibStyle Boolean optional Use label library default style (optinal)
layer layer optional Current layer
viewer viewer optional Current viewer

Members

anchor : Cartesian2

Point-labeled anchor
Default Value: Cartesian2(0,0)

code : Number

Labeled coding
Default Value: -1

display

Object visibility
Default Value: true

dragPoint : PlotPoint3D

Towing point
Default Value: PlotPoint3D(0,0,0)

gridLineWidth : Number

Point mark billboard line width
Default Value: 3

gridSurroundLineWidth : Number

Point marking billboard serif line width
Default Value: 0.5

gridSymbolSize : Cartesian2

Point mark billboard size
Default Value: Cartesian2(-1,-1)

hasDragLine : Boolean

Does the point label have a traction line
Default Value: false

id : String

Label id

isNegativeImage : Boolean

Point label is mirror image (optional)
Default Value: false

ispixelLine : Boolean

Use pixel lines (optional)

readonlylayer

Current layer

libID : Number

Label library coding
Default Value: -1

lineSymbolID : Number

Point label edge type
Default Value: 0

localPoints : Array.<PlotPoint3D>

Label position point
Default Value: Array

markHalo

Annotation border(optional)
Default Value: true

readonlymiddleMarkExist

Middle note
Default Value: false

modelPath : String

Point labeling model resource path
Default Value: ""

modelRotate : PlotPoint3D

Point label model rotation value
Default Value: PlotPoint3D(1,1,1)

modelScale : PlotPoint3D

Point labeling model scaling value
Default Value: PlotPoint3D(1,1,1)

picturePath : String

Point label image path

pictureSymbolSize : Cartesian2

Point label picture mode size
Default Value: Cartesian2(-1,-1)

rotate : PlotPoint3D

Point label rotation angle
Default Value: PlotPoint3D(0,0,0)

scale : Number

Scaling value
Default Value: 1

scalePoints : Array.<PlotPoint3D>

Scale point

scaleValues : Array.<Number>

Scale value

showMode : DotMode

Point label display model
Default Value: Grid

showTipLength

Note handle height
Default Value: 100

subSymbols : Array.<GeoGraphicObject>

Sublabel array

symbolName : Number

Label name
Default Value: ""

symbolRank : Number

Point marking level
Default Value: 0

symbolRanks : Array.<Number>

Point labeling level list

symbolSize : Cartesian2

Point label size

symbolStyle

Label style
Default Value: new SymbolStyle()

readonlysymbolType : SymbolType

Label type
Default Value: SymbolType.SYMBOL_UNKNOW

textContent : String

Mark the content
Default Value: ""

textPos : TextPos

Point mark mark position
Default Value: TextPos.Up

Methods

staticCesium.GeoGraphicObject.toGeoJson(graphicObject, geoJsonStr)String

Convert the label to GeoJson
Name Type Description
graphicObject GeoGraphicObject optional Label object
geoJsonStr String optional Converted GeoJson data
Returns:
Converted GeoJson data

getMaxEditPts()Number

Get the maximum edit point of the label
Returns:
Get the maximum edit point of the label

getMinEditPts()Number

Get the minimum edit point of the label
Returns:
Minimum edit point of label

setAnnotationArray(index, optionName, value)boolean

Modify multiple annotation attributes
Name Type Description
index
optionName
value
Returns: