Skip to content

MarkerSchema

const MarkerSchema: ZodObject<{ at: ZodTuple<[ZodNumber, ZodNumber], null>; color: ZodOptional<ZodEffects<ZodString, string, string>>; icon: ZodOptional<ZodString>; popup: ZodOptional<ZodArray<ZodRecord<ZodString, ZodArray<ZodType<{[key: string]: unknown; alt?: string; else?: string; format?: string; href?: string; property?: string; src?: string; str?: string | { $html: string; }; text?: string; }, ZodTypeDef, {[key: string]: unknown; alt?: string; else?: string; format?: string; href?: string; property?: string; src?: string; str?: string | { $html: string; }; text?: string; }>, "many">>, "many">>; size: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { at: [number, number]; color?: string; icon?: string; popup?: Record<string, object[]>[]; size?: number; }, { at: [number, number]; color?: string; icon?: string; popup?: Record<string, object[]>[]; size?: number; }>

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

One standalone marker (U5, R8).

Markers are the runtime half’s answer to “put a pin here”: DOM markers live (maplibregl.Marker), lowered to a symbol layer + generated pin sprite on export (the format’s first exports-with-fallback construct). size is a scale multiplier over MapLibre’s default pin size, not pixels.