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).
Properties
Section titled “Properties”
optionalfill?:string
Defined in: map/style-overrides.ts:9
Replaces the base fill (any CSS color).
opacity?
Section titled “opacity?”
optionalopacity?: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.
stroke?
Section titled “stroke?”
optionalstroke?:string
Defined in: map/style-overrides.ts:11
Replaces the base stroke.