Skip to content

LayerLegendSchema

const LayerLegendSchema: ZodUnion<[ZodObject<{ color: ZodString; icon: ZodOptional<ZodString>; label: ZodString; shape: ZodDefault<ZodEnum<["circle", "square", "line", "icon"]>>; }, "strip", ZodTypeAny, { color: string; icon?: string; label: string; shape: "circle" | "line" | "square" | "icon"; }, { color: string; icon?: string; label: string; shape?: "circle" | "line" | "square" | "icon"; }>, ZodLiteral<false>]>

Defined in: packages/core/src/schemas/layer.schema.ts:623

A layer’s legend: — its entry, or false to leave the layer out of the legend (a classified layer’s generated classes included).

legend: false