Skip to content

MapStyleSchema

const MapStyleSchema: ZodEffects<ZodEffects<ZodUnion<[ZodString, ZodObject<{ flavor: ZodOptional<ZodEnum<["light", "dark", "white", "grayscale", "black"]>>; glyphs: ZodOptional<ZodString>; lang: ZodOptional<ZodEnum<["ar", "cs", "bg", "da", "de", "el", "en", "es", "et", "fa", "fi", "fr", "ga", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "lv", "ne", "nl", "no", "mr", "mt", "pl"]>>; pmtiles: ZodString; sprite: ZodOptional<ZodString>; }, "passthrough", ZodTypeAny, objectOutputType<{ flavor: ZodOptional<ZodEnum<["light", "dark", "white", "grayscale", "black"]>>; glyphs: ZodOptional<ZodString>; lang: ZodOptional<ZodEnum<["ar", "cs", "bg", "da", "de", "el", "en", "es", "et", "fa", "fi", "fr", "ga", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "lv", "ne", "nl", "no", "mr", "mt", "pl"]>>; pmtiles: ZodString; sprite: ZodOptional<ZodString>; }, ZodTypeAny, "passthrough">, objectInputType<{ flavor: ZodOptional<ZodEnum<["light", "dark", "white", "grayscale", "black"]>>; glyphs: ZodOptional<ZodString>; lang: ZodOptional<ZodEnum<["ar", "cs", "bg", "da", "de", "el", "en", "es", "et", "fa", "fi", "fr", "ga", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "lv", "ne", "nl", "no", "mr", "mt", "pl"]>>; pmtiles: ZodString; sprite: ZodOptional<ZodString>; }, ZodTypeAny, "passthrough">>, ZodAny]>, any, any>, unknown, any>

Defined in: packages/core/src/schemas/basemap.schema.ts:254

config.mapStyle / style.basemap: a style URL, an inline style object, or the Protomaps basemap shorthand — as an object, or as a string naming a .pmtiles file, which parses to the object (see the file header for how they are told apart).