LightSchema
constLightSchema:ZodObject<{anchor:ZodOptional<ZodUnion<[ZodEnum<["map","viewport"]>,ZodType<any[],ZodTypeDef,any[]>]>>;color:ZodOptional<ZodUnion<[ZodEffects<ZodString,string,string>,ZodType<any[],ZodTypeDef,any[]>]>>;intensity:ZodOptional<ZodUnion<[ZodNumber,ZodType<any[],ZodTypeDef,any[]>]>>;position:ZodOptional<ZodUnion<[ZodTuple<[ZodNumber,ZodNumber,ZodNumber],null>,ZodType<any[],ZodTypeDef,any[]>]>>; },"strict",ZodTypeAny, {anchor?:any[] |"map"|"viewport";color?:string|any[];intensity?:number|any[];position?:any[] | [number,number,number]; }, {anchor?:any[] |"map"|"viewport";color?:string|any[];intensity?:number|any[];position?:any[] | [number,number,number]; }>
Defined in: packages/core/src/schemas/map.schema.ts:744
The style-spec root light (U10′) — the single light that shades
fill-extrusion faces.
Remarks
Section titled “Remarks”Spec-native, so it compiles straight through to the emitted style.json
root (class exports); live, the renderer applies it with map.setLight
once the style has loaded. Every property accepts a zoom expression, as
the spec allows. Closed object: an unknown key is a typo, never a
silently ignored setting.