Knit UI
GitHub

Playground

Loading playground…

Playground
<BackgroundLayer />

Examples

Solid Color

A solid background color filling the map — no tiles, just a flat backdrop.

Loading example…

Solid ColorSourceStorybook

Translucent Tint

A semi-transparent tint laid over the basemap — useful for dimming or warming the map without hiding it.

Loading example…

Translucent TintSourceStorybook

Props

PropTypeDefaultDescription
afterIdstring | undefined
beforeIdstring | undefined
idstring | undefined
layerIndexnumber | undefined
layoutRecord<string, unknown> | undefined
maxzoomnumber | undefined
minzoomnumber | undefined
paintRecord<string, unknown> | undefined
styleBackgroundLayerStyle | undefined
testIDstring | undefined