Knit UI
GitHub

Playground

Loading playground…

Playground
<CircleLayer />

Examples

Basic

A single constant style applied to every point.

Loading example…

BasicSourceStorybook

Data Driven

Data-driven: both radius and color are interpolated from each city's population, so larger cities render as bigger, darker circles.

Loading example…

Data DrivenSourceStorybook

Stroked

Stroked circles: a white halo plus a colored ring around each point.

Loading example…

StrokedSourceStorybook

Styling Variations

Styling variations: a soft, blurred glow with a translucent fill and a thin tinted stroke — useful for ambient / heatmap-like point markers.

Loading example…

Styling VariationsSourceStorybook

Props

PropTypeDefaultDescription
afterIdstring | undefined
beforeIdstring | undefined
filterFilterSpecification | undefined
idstring | undefined
layerIndexnumber | undefined
layoutRecord<string, unknown> | undefined
maxzoomnumber | undefined
minzoomnumber | undefined
paintRecord<string, unknown> | undefined
sourcestring | undefined
source-layerstring | undefined
sourceLayerstring | undefined
styleCircleLayerStyle | undefined
testIDstring | undefined