CircleLayerSchema
constCircleLayerSchema: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.
Remarks
Section titled “Remarks”Renders points as circles. Supports data-driven styling via MapLibre expressions for all paint properties.
Common Paint Properties:
circle-radius- Size in pixelscircle-color- Fill colorcircle-opacity- Fill opacity (0-1)circle-stroke-width- Border widthcircle-stroke-color- Border color
Examples
Section titled “Examples”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