Skip to content

StyleOverride

Defined in: map/style-overrides.ts:7

Bulk per-drawable style override, composed over the base colors the layer’s fill/stroke accessors produce. Colors only — stroke geometry has its width baked in at tessellation time, so a bulk width change would be O(n) re-tessellation (widths are available in the single-item highlight overlay instead).

optional fill?: string

Defined in: map/style-overrides.ts:9

Replaces the base fill (any CSS color).


optional opacity?: number

Defined in: map/style-overrides.ts:13

Finite number in 0..1; out-of-range values are clamped to [0, 1]. NaN is not valid.


optional stroke?: string

Defined in: map/style-overrides.ts:11

Replaces the base stroke.