Methods

This section describes the methods that can be used in code to manipulate the Layer object.

clearSelection()

Deselects all layer elements.

getDataSource()

Returns the DataSource instance.

Return Value:

DataSource

The DataSource instance.

NOTE
This method returns the DataSource instance even if the dataSource option of the layer was given a simple array.
See Also

getElements()

Gets all layer elements.

Return Value:

Array

The array of layer elements.