GeoGraphicObject

new Cesium.GeoGraphicObject(options)

Plotting symbol class
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 Marked position point
symbolName String optional Label name
symbolType SymbolType optional Label type
visible Boolean true optional Is it visible?
showTipLength Number optional Note handle height
markHalo Boolean optional Whether to display the annotation box
symbolStyle SymbolStyle optional Label style
symbolTextStyle symbolTextStyle optional Text style
isUseSymbolLibStyle Boolean optional Whether to use the default style of the label library
layer layer optional Current layer
viewer viewer optional Current viewer

Members

anchor : Cartesian2

Point label anchor
Default Value: Cartesian2(0,0)

code : Number

Label coding
Default Value: -1

dragPoint : Cartesian3

Point labeling point
Default Value: Cartesian3(0,0,0)

gridLineWidth : Number

Point label bulletin board line width
Default Value: 3

gridSurroundLineWidth : Number

Point label bulletin board line width
Default Value: 0.5

gridSymbolSize : Cartesian2

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

hasDragLine : Boolean

Whether the point label has a pull line
Default Value: false

id : String

Label id

isNegativeImage : Boolean

Whether the point label is a mirror
Default Value: false

ispixelLine : Boolean

Whether to use pixel lines

readonlylayer

Current layer

libID : Number

Label library code
Default Value: -1

lineSymbolID : Number

Point label edge type
Default Value: 0

localPoints : Array.<Cartesian3>

Label position point
Default Value: Array

markHalo

Is there a note border?
Default Value: true

readonlymiddleMarkExist

Is there an intermediate note?
Default Value: false

modelPath : String

Point label model resource path
Default Value: ""

modelRotate : Cartesian3

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

modelScale : Cartesian3

Point label model scaling value
Default Value: Cartesian3(1,1,1)

picturePath : String

Point label image path

pictureSymbolSize : Cartesian2

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

rotate : Cartesian3

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

scale : Number

Scaling scale value
Default Value: 1

scalePoints : Array.<Cartesian3>

Labeling point

scaleValues : Array.<Number>

Label scale value

showMode : DotMode

Point label display model
Default Value: Grid

showTipLength

Note handle height
Default Value: 100

subSymbols : Array.<GeoGraphicObject>

Sub label array

symbolName : Number

Label name
Default Value: ""

symbolRank : Number

Point label level
Default Value: 0

symbolRanks : Array.<Number>

Point label level list

symbolStyle

Label style
Default Value: new SymbolStyle()

readonlysymbolType : SymbolType

Label type
Default Value: SymbolType.SYMBOL_UNKNOW

textContent : String

Point label annotation
Default Value: ""

textPos : TextPos

Point label annotation position
Default Value: TextPos.Up

visible

Object visibility
Default Value: true

Methods

staticCesium.GeoGraphicObject.fromGeoJson(geoJSON)GeoGraphicObject

Convert geoJson to a plot object
Name Type Description
geoJSON JSON GeoJson format data
Returns:
Converted plot object

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 label maximum edit point
Returns:
Get the label maximum edit point

getMinEditPts()Number

Get the label minimum edit point
Returns:
Label minimum edit point