Skip to content

AddLayerObject

AddLayerObject = LayerSpecification | Omit<LayerSpecification, "source"> & object | CustomLayerInterface | RasterLayerCustomShaderSpecification | MapLibreCanvasLayer

Defined in: style/style.ts:156

Specifies a layer to be added to a Style. In addition to a standard LayerSpecification or a CustomLayerInterface, a LayerSpecification with an embedded SourceSpecification can also be provided.