A newer version of this page is available. Switch to the current version.

Methods

Methods used to control the vector map layer.

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<Layer Element>

The array of layer elements.