Interface: Patch
Defined in: layers/patches.ts:38
One filled polygon: a ring of x/y, with optional holes.
Properties
color?
ts
optional color?: string | Color;Defined in: layers/patches.ts:44
Explicit fill color (overrides the layer default / colormap).
holes?
ts
optional holes?: number[];Defined in: layers/patches.ts:42
Vertex indices where each hole ring starts (mapbox-earcut convention).
value?
ts
optional value?: number;Defined in: layers/patches.ts:46
Value used to color this patch via the layer colormap (choropleth).
x
ts
x: ArrayLike<number>;Defined in: layers/patches.ts:39
y
ts
y: ArrayLike<number>;Defined in: layers/patches.ts:40