Layer collection class. This class is used to manage all the layers in the scene.
Members
-
Get a list of layers.
Methods
-
Add a layer to the layer collection.
Name Type Description layerLayer The layer to be added. -
Find layer objects based on the layer name.
Name Type Description nameString The specified layer name. Returns:
Layer object. -
Finds a layer object based on the specified index.
Name Type Description indexNumber The specified layer index. Returns:
Layer object. -
Get the currently selected S3M layer.
Returns:
Returns the S3MTilesLayer layer object. -
Query feature element information.
Name Type Description winposNumber location information. sceneObject Scene object. -
Release the selected layer object.
-
Removes the layer object of the specified name from the layer 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 the deletion succeeds, otherwise returns false. -
Delete all layer objects in the layer collection.
Name Type Default Description destroyBoolean trueoptional Specifies whether to release resources when deleting. -
Set the currently selected S3M layer.
Name Type Description layerS3MTilesLayer Click on the selected S3M layer currently.
