GeoGraphicObject

Plot Symbol Class

new SuperMap3D.GeoGraphicObject(options)

Name Type Description
options Object optional The object has the following properties:
Name Type Default Description
libID Number optional LibID of symbol
code Number optional symbol code
localPoints Array optional position points of symbol
symbolName String optional symbol name
symbolType SymbolType optional symbol type
display Boolean true optional Is it visible?
showTipLength Number optional annotation handle height
markHalo Boolean optional Is the annotation box displayed?
symbolStyle SymbolStyle optional symbol style
symbolTextStyle SymbolTextStyle optional symbol text style
isUseSymbolLibStyle Boolean optional Whether to use the default style of symbol library
annotationArray Array.<SymbolAnnotation> optional multi-annotation array
layer Layer optional Current layer
viewer Viewer optional Current viewer

Members

staticSuperMap3D.GeoGraphicObject.bubbleHeight : Map

The height of the multimedia information box

staticSuperMap3D.GeoGraphicObject.bubbleWidth : Map

The width of the multimedia information box

staticSuperMap3D.GeoGraphicObject.changeModeDistanceMap : Map

The corresponding distance for switching dot symbol mode.

staticSuperMap3D.GeoGraphicObject.description : Map

Descriptive information for multimedia content

staticSuperMap3D.GeoGraphicObject.mediaList : Map

multimedia information

code : Number

plot symbol coding
Default Value: -1

display

visibility of object
Default Value: true

dotDepthTest : Boolean

Whether to enable depth testing for dot plot symbol bulletin board mode
Default Value: true

id : String

id of plot symbol

isDistanceChangeMode : Boolean

Whether the dot plot symbol mode switch is enabled

readonlylayer

current layer

libID : Number

LibID of symbol
Default Value: -1

localPoints : Array.<MPoint3D>

position points of plot symbol
Default Value: []

markHalo

Is there a annotation border?
Default Value: true

readonlymiddleMarkExist

Is there an intermediate annotation?
Default Value: false

showTipLength

height of annotation handle
Default Value: 100

symbolName : String

symbol name
Default Value: ""

symbolStyle

symbol style
Default Value: new SymbolStyle()

readonlysymbolType : SymbolType

symbol type
Default Value: SymbolType.SYMBOL_UNKNOW

wholeHeight : Number

whole height of symbol

Methods

addGeoEffect(effect)Array

Add special effects to plotting object
Name Type Description
effect PlotGeoEffectBase
Returns:
array of effects

clearMediaList()

Clear the symbol multimedia information list.

getGeoEffectArray()Array

get array of effects
Returns:
array of effects

getGeoEffectByID(id)PlotGeoEffectBase

Get effect by effect's ID
Name Type Description
id String id of effect
Returns:
effects

getGeoEntity()Object

get entity object
Returns:
entity object

getGeoEntityShowMode()DotMode

Get Entity Object Pattern
Returns:
Entity Object Pattern

getMaxEditPts()Number

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

getMinEditPts()Number

Get the minimum edit point of the symbol
Returns:
the minimum edit point of the symbol

removeAllGeoEffect()

Remove all effects

removeGeoEffectByID(id)

Remove the specified effect by ID
Name Type Description
id Number ID of effect

removeGeoEffectByIndex(index)

Remove the specified effect by index
Name Type Description
index Number index of effect

setAnnotationArray(index, optionName, value)boolean

Modify the Multi-Annotation Attributes for a Specified Index
Name Type Description
index index
optionName name of attributes("textContent"、"localPoint"、"fontName"、"foreColor"、"fontSize"、"outlineWidth"、"outlineColor"、"outline")
value Attribute value
Returns:

setGeoEntity()Object

Set Entity Object
Returns:
entity object

setGeoEntityShowMode(dotMode)

Set Entity Object Mode
Name Type Description
dotMode DotMode optional Entity Object Pattern

toGeoJson()String

Convert symbol to GeoJson
Returns:
Converted GeoJson data