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

StyleSwapOptions

StyleSwapOptions = object

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

The options object related to the Map's style related methods

Properties

diff?

optional diff: boolean

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

If false, force a 'full' update, removing the current style and building the given one instead of attempting a diff-based update.


transformStyle?

optional transformStyle: TransformStyleFunction

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

TransformStyleFunction is a convenience function that allows to modify a style after it is fetched but before it is committed to the map state. Refer to TransformStyleFunction.