SymbolLayerSchema
constSymbolLayerSchema: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.
Remarks
Section titled “Remarks”Renders icons, text labels, or both. Most complex layer type with extensive styling options for typography and icon placement.
Examples
Section titled “Examples”Icon
- id: markers type: symbol source: type: geojson url: "https://example.com/markers.geojson" layout: icon-image: "marker-15" icon-size: 1.5Text Label
layout: text-field: ["get", "name"] text-size: 12 text-anchor: toppaint: text-color: "#000000" text-halo-color: "#ffffff" text-halo-width: 2