Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias StyleSwapOptions

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

type StyleSwapOptions = {
    diff?: boolean;
    transformStyle?: TransformStyleFunction;
}
Index
diff?: boolean

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

transformStyle?: TransformStyleFunction

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.

Was this helpful?