Layers@knitui/map
Light
Light configures the global illumination used to shade 3D FillExtrusion geometry. It takes no source and is added as a direct child of <Map>, affecting every extrusion layer at once. anchor ties the light to the map or the viewport, position is a radial [r, azimuth, polar] direction, and color/intensity set its tone and strength.
WebiOSAndroidnative split2 own props3 examples
import { Light } from "@knitui/map";Playground
Loading playground…
<Light />Examples
Overhead
Default-ish overhead light: high intensity, neutral color, anchored to the viewport.
Loading example…
Warm Low Angle
A warm, low, side-angled light — the lower polar angle and amber color cast longer, sunset-like shading across the same buildings.
Loading example…
Cool Dim
A dim, cool light — low intensity with a blue tint produces flatter, moodier shading.
Loading example…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
style | LightSpecification | undefined | — | |
testID | string | undefined | — |