Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

AddLayerObject

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

Defined in: src/style/style.ts:196

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.