PlotLayers

new Cesium.PlotLayers()

PlottingLayer图层集合

Methods

add(layer)

添加PlottingLayer图层对象
Name Type Description
layer PlottingLayer PlottingLayer图层对象

find(name)PlottingLayer

根据图层名称查找PlottingLayer图层对象
Name Type Description
name String 图层名称
Returns:
PlottingLayer 图层对象

findByIndex(index)PlottingLayer

根据索引查找PlottingLayer图层对象
Name Type Description
index Number 索引
Returns:
PlottingLayer 图层对象

getAllPlottingLayers()Array.<PlottingLayer>

获取当前场景所有的标绘图层
Returns:
返回PlottingLayer图层对象数组

getFeatrueByUuID()GeoGraphicObject

通过UUID查询当前场景中标号
Returns:
标绘对象

getPlottingLayerByName()PlottingLayer

Returns:
返回PlottingLayer图层对象

getPlottingLayerIsActived()PlottingLayer

获取当前场景激活状态的标绘图层
Returns:
返回激活状态的PlottingLayer图层对象

getSelectedLayer()PlottingLayer

获取当前点击选中的PlottingLayer图层
Returns:
返回PlottingLayer图层对象

releaseSelection()

释放所有S3MTilesLayer的选择集

remove(name, destroy)

根据图层名称删除PlottingLayer图层对象
Name Type Default Description
name String 图层名称
destroy Boolean true optional 是否释放webgl资源,默认释放

removeAll(destroy)

删除所有PlottingLayer图层对象
Name Type Default Description
destroy Boolean true optional 是否释放资源,默认为true

setPlottingLayerIsActived(name, drawCtrl, editCtrl)Boolean

设置当前场景标绘图层为激活状态
Name Type Description
name String 图层名
drawCtrl PlotDrawControl 绘制控件
editCtrl PlotEditControl 编辑控件
Returns:
是否设置成功

setSelectedLayer()

设置当前点击选中的PlottingLayer图层