PlotDrawControl

new Cesium.PlotDrawControl(scene, plottingLayer)

动态标绘绘制控件
Name Type Description
scene Scene Scene对象
plottingLayer PlottingLayer 标绘图层

Members

code : Number

标号code

drawControlEndEvent : Event

标绘控件结束事件

drawFinishEvent : Event

标号绘制结束事件

libID : Number

标号库编码

plottingLayer : PlottingLayer

标绘图层

serverUrl : String

标绘服务url

Methods

activate(libId, code, Url)

设置要绘制的标号的LibI、Code及资源文件路径,并激活
Name Type Description
libId Number 标号库ID
code Number 标号编码
Url String 模型或图片的资源路径
Example:
//设置绘制折线并激活绘制控件
 drawCtrl.activate(0,24);

deactivate()

取消激活绘制控件

setAction(libId, code, Url)

设置要绘制的标号的LibID、Code及资源文件路径
Name Type Description
libId Number 标号库ID
code Number 标号编码
Url String 模型或图片的资源路径
Example:
//设置绘制折线
 drawCtrl.setAction(0,24);
//激活绘制控件
 drawCtrl.activate();

setPlottingLayer(layer)boolean

设置标绘图层
Name Type Description
layer PlottingLayer 标绘图层
Returns:
是否设置成功