On this page

Type Alias AddLayerObject

AddLayerObject:
    | LayerSpecification
    | Omit<LayerSpecification, "source"> & { source: SourceSpecification }
    | CustomLayerInterface

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.

Was this helpful?
SDK JS
Reference
AddLayerObject