Skip to main content

Layer

Properties

circleRadius

number Radius of circle in pixels

colorBreaks

array Array of color breaks

colorField

string Dimension used to style colors

colorFieldType

string Type of colorField, either dimension or measure

colorMethod

string Type of color method used

colorScale

string Type of scale algorythm used

fillColor

string The color for the fill

fillFieldStartColor

string The fill field start color (interpolation)

fillFieldEndColor

string The fill field end color (interpolation)

fillOutlineColor

string The color for fill outline

geometries

array An array of geometries for the layer

geometryIndex

number The index of the current geometry in geometries

icon

object The properties for a symbol icon

iconAllowOverlap

boolean Allow icons to overlap in a layer

iconColor

string The color for the icon

iconSize

number The size for the icon in pixels

id

string The id of the layer

layerGroup

string The name of the layer group

layerName

string The namme of the layer

layerOpacity

nubmer The opacity of the layer

layerType

string The type of layer (Fill, Circle, Symbol, etc.)

legend

object Setting for the layer legend

lineWidth

number The width of a line layer in pixels

source

uuid The uuid of the source attached to the layer

tilesetId

uuid The id of the tileset displayed in the map

visible

boolean The layer is visible or hidden

filters

array Array of filters