# getId
Get layer id.
Returns String (opens new window)
# getIndex
Get layer index.
Returns Number (opens new window)
# getValues
Get layer values.
# Parameters
opts
Object (opens new window) Options (optional, default{}
)opts.camelCase
Boolean (opens new window)? Return property names in camelCase.
Returns Object (opens new window)
# getLabel
Get layer label.
Returns String (opens new window)
# isSelected
Check if the layer is selected.
Returns Boolean (opens new window)
# select
Select the layer.
# remove
Remove the layer.
# move
Move layer to a new index.
# Parameters
index
Number (opens new window) New index
# getStylePreview
Get style object for the preview.
# Parameters
opts
Object (opens new window) Options. Same ofPropertyStack.getStyleFromLayer
(optional, default{}
)
Returns Object (opens new window) Style object
# hasPreview
Check if the property has the preview enabled for this layer.
Returns Boolean (opens new window)