Layer Element

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

The elements described in this section become accessible when you get a layer element as a callback function parameter or obtain all the map layers using the getElements() method.

Fields

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

Methods

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

Name Description
applySettings(settings)

Applies the layer element settings and updates element appearance.

attribute(name)

Gets the value of an attribute.

attribute(name, value)

Sets the value of an attribute.

coordinates()

Gets the layer element coordinates.

selected()

Gets the selection state of the layer element.

selected(state)

Sets the selection state of the layer element.