PlotDrawControl

new SuperMap3D.PlotDrawControl(scene, plottingLayer)

draw control of dynamic plotting
Name Type Description
scene Scene Scene Object
plottingLayer PlottingLayer plotting layer

Members

readonlycode : Number

symbol code

readonlydrawControlEndEvent : Event

End Event of Drawing Control

readonlydrawFinishEvent : Event

End Event of Symbol Drawing

readonlylibID : Number

Symbol library encoding

plottingLayer : PlottingLayer

plotting layer

serverUrl : String

Plotting service URL

Methods

activate(libId, code, Url)

Activate the drawing control, set the LibID, Code and resource file paths of the symbol to be drawn, and activate
Name Type Description
libId Number Symbol library ID
code Number Symbol encoding
Url String resource path for model or image
Example:

    //Set to Draw Polyline and Activate the Drawing Control
    drawCtrl.activate(0,24);

deactivate()

Deactivate the draw control

setAction(libId, code, Url)

Set the LibID, Code, and resource file paths for symbol to be drawn
Name Type Description
libId Number Symbol Library ID
code Number Symbol encoding
Url String resource path for model or image
Example:

    //Set to Draw Polyline
    drawCtrl.setAction(0,24);
    //Activate the Drawing Control
    drawCtrl.activate();

setPlottingLayer(layer)boolean

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