PlotEditControl

new SuperMap3D.PlotEditControl(scene, plottingLayer)

Edit control of dynamic plotting
Name Type Description
scene Scene the current scene
plottingLayer PlottingLayer plotting layer

Members

editMode : PlotEditMode

Edit Mode of the Editing Control
Default Value: PlotEditMode.PLOTSYMBOL

readonlyFeatureDoubleClickEvent : Event

Feature Double-Click Event

readonlyFeatureDragEvent : Event

Feature drag event

readonlyFeatureLeftClickEvent : Event

symbol click event

readonlyFeatureModifiedEvent : Event

symbol edited event

readonlyFeatureRemoveEvent : Event

remove symbol event

readonlyFeatureRightClickEvent : Event

Symbol Right-Click Event

readonlyFeatureSelectedEvent : Event

Symbol Selected Event

readonlyModifiedEvent : Event

Symbol Edited Event

pickRectangle : Cartesian2

Selection Tolerance Range of Rectangle Width and Height
Default Value: {x:10,y:10}

plottingLayer : PlottingLayer

plotting layer

readonlyRemoveFeatureEvent : Event

Remove Symbol Event

readonlySceneLeftClickEvent : Event

Map Left-Click Event

readonlySceneRightClickEvent : Event

Map Right-Click Event

readonlySelectedEvent : Event

Symbol Selected Event

readonlyUnSelectedEvent : Event

abel Released Event

Methods

activate()

Activate edit control

clearCopyOrCut()

Clear copied or cut symbols

copy()

Copy selected symbols

cut()

Cut selected symbols

deactivate()

Deactivate edit control

DoSelectObjectEdit(geoEdit)

Handle LabeSymboll Selection (Draw Selection Box and Control Points, Initialize Editing Control Properties)
Name Type Description
geoEdit Symbols to be selected

isActive()Boolean

Check if the Editing Control is Activated
Returns:
Is the edit control active?

paste(position)

Paste Selected Symbols to a Specified Position (If the Specified Position is NULL, Paste to the Original Position)
Name Type Description
position Specified Position

pickRect(leftTopPoint, rightBottomPoint)Array.<GeoGraphicObject>

box selection
Name Type Description
leftTopPoint Cartesian2 Box selection Start point (pixels)
rightBottomPoint Cartesian2 Box selection End point (pixels)
Returns:
array of selected objects

setPlottingLayer(layer)boolean

set plotting layer
Name Type Description
layer PlottingLayer plotting layer
Returns:
Is the setting successful?

unSelection(isRaiseEvent)

Release the selected symbol
Name Type Default Description
isRaiseEvent boolean false optional Whether to Send Event(s)