Skip to content

ImageConfigSchema

const ImageConfigSchema: ZodUnion<[ZodString, ZodObject<{ pixelRatio: ZodOptional<ZodNumber>; sdf: ZodOptional<ZodBoolean>; url: ZodString; }, "strip", ZodTypeAny, { pixelRatio?: number; sdf?: boolean; url: string; }, { pixelRatio?: number; sdf?: boolean; url: string; }>]>

Defined in: packages/core/src/schemas/map.schema.ts:562

One named image (U6, R9) — for symbol-layer icons and *-pattern fills.

A bare string is the URL shorthand. Images live in the STYLE half: live, the renderer loads and addImages them before layers; on export they are fetched at compile time and merged into the document sprite, with layer references rewritten to mlym:<name> — a full compile, class exports.