Skip to content

SymbolLayerSchema

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

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

Symbol layer for icons and text.

Renders icons, text labels, or both. Most complex layer type with extensive styling options for typography and icon placement.

Icon

- id: markers
type: symbol
source:
type: geojson
url: "https://example.com/markers.geojson"
layout:
icon-image: "marker-15"
icon-size: 1.5

Text Label

layout:
text-field: ["get", "name"]
text-size: 12
text-anchor: top
paint:
text-color: "#000000"
text-halo-color: "#ffffff"
text-halo-width: 2

MapLibre Symbol Layer