Layer Control
Last updated
Last updated
Layer control provides functions to set properties of each layer, such as layer addition, deletion, and color and style.
Adds a FATOS style layer to the map's style.
id
A unique identifier that you define.
String
source
The data source for the layer. Reference a source that has already been defined using the source's unique id.
String
type
The type of layer (ex. fill or symbol)
String
filter
An expression specifying conditions on source features. Only features that match the filter are displayed.
Array
minzoom
The minimum zoom level for the layer.
number
maxzoom
The maximum zoom level for the layer.
number
layout
Object
paint
Paint properties for the layer. Available paint properties vary by layer.type
.
Object
beforlayerID
The ID of an existing layer to insert the new layer before, resulting in the new layer appearing visually beneath the existing layer.
String
A list of layer types is available in the
Layout properties for the layer. Available layout properties vary by layer.type
.
A full list of layout properties for each layer type is available in the
A full list of paint properties for each layer type is available in the