PlotLayers

new SuperMap3D.PlotLayers()

collection of PlottingLayer

Methods

add(layer)

Add PlottingLayer object
Name Type Description
layer PlottingLayer PlottingLayer object

find(name)PlottingLayer

Find the PlottingLayer object by layer name
Name Type Description
name String Layer name
Returns:
PlottingLayer object

findByIndex(index)PlottingLayer

Find the PlottingLayer object by index
Name Type Description
index Number index
Returns:
PlottingLayer object

getAllPlottingLayers()Array.<PlottingLayer>

Get all the plotting layers of the current scene
Returns:
Return an array of PlottingLayer objects

getFeatrueByUuID()GeoGraphicObject

Query the symbol in the current scene by UUID
Returns:
plotting object

getPlottingLayerByName()PlottingLayer

Get the plotting layer by layer name
Returns:
Return the PlottingLayer object

getPlottingLayerIsActived()PlottingLayer

get the active plotting layer in the current scene
Returns:
Return the active PlottingLayer object

getSelectedLayer()PlottingLayer

Get the current click selected PlottingLayer
Returns:
Return the PlottingLayer object

releaseSelection()

Release all selection sets

remove(name, destroy)

Delete the PlottingLayer object based on the layer name
Name Type Default Description
name String layer name
destroy Boolean true optional Whether to release WebGL resources, releasing by default

removeAll(destroy)

Delete all PlottingLayer objects
Name Type Default Description
destroy Boolean true optional Whether to release resources, defaulting to true

setPlottingLayerIsActived(name, drawCtrl, editCtrl)Boolean

Set the plotting layer in the current scene to the active state
Name Type Description
name String layer name
drawCtrl PlotDrawControl Draw control
editCtrl PlotEditControl Edit control
Returns:
Whether the setting was successful

setSelectedLayer(plotting layer)

set selected PlottingLayer
Name Type Description
plotting layer PlottingLayer