Skip to content

CircleLayerSchema

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

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

Circle layer for point data.

Renders points as circles. Supports data-driven styling via MapLibre expressions for all paint properties.

Common Paint Properties:

  • circle-radius - Size in pixels
  • circle-color - Fill color
  • circle-opacity - Fill opacity (0-1)
  • circle-stroke-width - Border width
  • circle-stroke-color - Border color

Basic Circle

- id: points
type: circle
source:
type: geojson
url: "https://example.com/points.geojson"
paint:
circle-radius: 8
circle-color: "#ff0000"

Data-Driven Radius

paint:
circle-radius:
- interpolate
- ["linear"]
- ["get", "magnitude"]
- 0
- 4
- 10
- 20

MapLibre Circle Layer