PlottingLayer

new Cesium.PlottingLayer(scene, layerName)

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

Members

geoGraphicObjects : Array.<GeoGraphicObject>

Array of plot objects of the layer

id : Number

Layer ID

isEditable : Boolean

Whether the layer is editable

isLocked : Boolean

Whether the layer is locked

isSelected : Boolean

Whether the layer is selectable

name : String

The name of the layer

readonlyselectedFeature : GeoGraphicObject

Currently selected object

visibility : Boolean

Visible layer

Methods

createGroupObject(features)GroupObject

Create composite objects.
Name Type Description
features Array.<GeoGraphicObject> Label object。
Returns:
Combine objects.

createGroupObject(geoJSON)Array.<GroupObject>

Create composite objects based on GeoJson.
Name Type Description
geoJSON GeoJson According to GeoJson object.
Returns:
Combine an array of objects.

createSymbol(libID, code, points, callback)

Create label based on label library code and label code
Name Type Description
libID Number Label library coding
code Number Label coding
points Array.<PlotPoint3D> Location array
callback function optional Callback.

destroy()

Release resources and destroy layers

geoJsonToGeoGraphicObject(geoJSON, callback)

Convert geoJson into a plot object and add it to the current plot layer
Name Type Description
geoJSON JSON GeoJson format data
callback function optional Callback.

getFeatureByUuid(id)GeoGraphicObject

Determine the label object according to id
Name Type Description
id String Label object id
Returns:
Label object

removeAll()

Clear layer

removeFeatureByUuId(uuid)

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

removeGeoGraphicObject(geoGraphicObject)

Remove specified label
Name Type Description
geoGraphicObject GeoGraphicObject Label object to remove

unGroupObject(features)Boolean

Split the combined object.
Name Type Description
features Array.<GeoGraphicObject> Combine objects.
Returns:
Whether the split is successful.