Layer collection class. This class is used to manage all layers in the scene.
Members
-
Get a list of layers.
Methods
-
Adds a layer to the layers collection.
Name Type Description layerLayer The layer to be added. -
Find layer objects by layer name.
Name Type Description nameString The specified layer name. Returns:
layer object. -
Find the layer object according to the specified index.
Name Type Description indexNumber The specified layer index. Returns:
layer object. -
getSelectedLayer() → S3MTilesLayer
-
Get the currently clicked selected S3M layer.
Returns:
Returns the S3MTilesLayer layer object. -
Adjust the layer order down, corresponding to the imagery layer collection.
Name Type Description layerLayers layer to be adjusted -
Set the current S3M vector surface layer to the bottom layer.
Name Type Description layerS3MTilesLayer The currently clicked selected S3M layer. -
Query feature element information.
Name Type Description winposNumber location information. sceneObject scene object -
Adjust the layer order upwards, corresponding to the imagery layer collection.
Name Type Description layerLayers layer to be adjusted -
Set the current S3M vector surface layer to the top layer.
Name Type Description layerS3MTilesLayer The currently clicked selected S3M layer. -
Release the selected layer objects.
-
Removes the layer object with the specified name from the layers collection.
Name Type Default Description layerstring The name of the layer to be deleted. destroyBoolean trueoptional Specifies whether to release resources when deleting. Returns:
Returns true if deletion is successful, otherwise returns false. -
Deletes all layer objects in the layer collection.
Name Type Default Description destroyBoolean trueoptional Specifies whether to release resources when deleting. -
Set the currently clicked selected S3M layer.
Name Type Description layerS3MTilesLayer The currently clicked selected S3M layer.
