Skip to content

FillLayerSchema

const FillLayerSchema: ZodObject<object & object, "passthrough", ZodTypeAny, objectOutputType<object & object, ZodTypeAny, "passthrough">, objectInputType<object & object, ZodTypeAny, "passthrough">>

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

Fill layer for polygon data.

Renders filled polygons with optional outlines.

Basic Fill

- id: parks
type: fill
source:
type: geojson
url: "https://example.com/parks.geojson"
paint:
fill-color: "#228B22"
fill-opacity: 0.5
fill-outline-color: "#006400"

MapLibre Fill Layer