PlottingLayer

new Cesium.PlottingLayer(scene, layerName)

Plot layer class
Name Type Description
scene Scene Scenes
layerName String Plot layer name

Members

geoGraphicObjects : Array.<GeoGraphicObject>

Array of plot objects

id : Number

Layer ID

isEditable : Boolean

Is the layer editable?

isLocked : Boolean

Whether the layer is locked

isSelected : Boolean

Whether the layer can be selected

name : String

Layer name

readonlyselectedFeature : GeoGraphicObject

Currently selected object

visibility : Boolean

Visible layer

Methods

addFeature(geoGraphicObject)Boolean

Add a label to the plot layer
Name Type Description
geoGraphicObject GeoGraphicObject The label object to be added
Returns:
Whether to add success

createSymbol(libID, code, points, callback)

Create labels based on label library encoding and label encoding
Name Type Description
libID Number Label library code
code Number Label coding
points Array.<Cartesian3> Position point array
callback function optional Callback.

destroy()

Release resource destroy layer

getFeatureByUuid(id)GeoGraphicObject

Determine the label object based on the id
Name Type Description
id String Label object id
Returns:
Label object

removeAll()

Empty the layer

removeFeatureByUuId(uuid)

Remove the specified label from the layer according to uuid
Name Type Description
uuid String The id of the label to remove

removeGeoGraphicObject(geoGraphicObject)

Remove specified label
Name Type Description
geoGraphicObject GeoGraphicObject The label object to be removed