Layers

new Cesium.Layers()

The layer collection class. This class is used to manage all layers in the scene.

Members

readonlylayerQueue : Array

Get the layer list.

Methods

add(layer)

Add a layer to the layer collection.
Name Type Description
layer Layer The layer to be added.

find(name)Layer

Find the layer object based on the layer name.
Name Type Description
name String The specified layer name.
Returns:
Layer object.

findByIndex(index)Layer

Find the layer object according to the specified index.
Name Type Description
index Number The specified layer index.
Returns:
Layer object.

getSelectedLayer()S3MTilesLayer

Get the currently clicked S3M layer.
Returns:
Returns the S3MTilesLayer layer object.

lower(layer)

Adjust the layer order downwards, corresponding to the imagery layer set.
Name Type Description
layer Layers Layer to be adjusted

pickFeatures(winpos, scene)

Query feature element information.
Name Type Description
winpos Number location information.
scene Object Scene object.

raise(layer)

Adjust the layer order upwards to correspond to the image layer set.
Name Type Description
layer Layers Layer to be adjusted

releaseSelection()

Release the selected layer object.

remove(layer, destroy)Boolean

Delete the layer object with the specified name from the layer collection.
Name Type Default Description
layer string The name of the layer to be deleted.
destroy Boolean true optional Specify whether to release resources when deleting.
Returns:
Return true if the deletion is successful, otherwise false.

removeAll(destroy)

Delete all layer objects in the layer collection.
Name Type Default Description
destroy Boolean true optional Specify whether to release resources when deleting.

setSelectedLayer(layer)

Set the currently clicked S3M layer.
Name Type Description
layer S3MTilesLayer Click the currently selected S3M layer.