Skip to content

RasterLayerSchema

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

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

Raster layer for raster tiles or images.

Renders raster imagery with opacity and blending controls.

- id: satellite
type: raster
source:
type: raster
tiles: ["https://tile.example.com/{z}/{x}/{y}.png"]
paint:
raster-opacity: 0.8

MapLibre Raster Layer