Skip to content

StyleV2Schema

const StyleV2Schema: z.ZodTypeAny

Defined in: packages/core/src/schemas/map-v2.schema.ts:378

The style: half — everything that contributes to the compiled style.json.

The camera keys and basemap are lifted to the root (their field types are reused from MapConfigSchema; basemap is v1’s mapStyle). Not marked open, so mapStyle at this root — the v1 spelling — warns rather than passing silently.