Get feature layers

getFeatureLayers()

To access the array of all vector layers, use the getFeatureLayers method. The keys of this array are layer names. To use the data manipulation capabilities, you must use the values of this array.

Returns:

Object: Returns feature layers object.

Example:

const featureLayers = map.getFeatureLayers();

Leave a comment

Your email address will not be published. Required fields are marked *