Skip to content

ChapterLayersSchema

const ChapterLayersSchema: ZodObject<{ hide: ZodDefault<ZodArray<ZodString, "many">>; show: ZodDefault<ZodArray<ZodString, "many">>; }, "strip", ZodTypeAny, { hide: string[]; show: string[]; }, { hide?: string[]; show?: string[]; }>

Defined in: packages/core/src/schemas/scrollytelling.schema.ts:158

Chapter layer visibility configuration.

Controls which layers are visible during this chapter. The ids name layers of the story (its layers:) or of the basemap style.

chapters:
- id: faults
title: Along the fault
center: [-122.4, 37.7]
zoom: 8
layers:
show:
- earthquakes
- fault-lines
hide:
- buildings