Layer Fields

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

elementType

The type of the layer elements.

Type: String

This option is used only for the marker layer type. The possible marker types are: "dot", "bubble", "pie" and "image".

index

The layer index in the layers array.

Type: Number

name

The name of the layer.

Type: String

type

The layer type. Can be "area", "line" or "marker".

Type: String