Skip to main content

Type Alias: ZoomScaled

ZoomScaled = number | ZoomStop[]

Defined in: spec/types.ts:221

A value that is either fixed at every zoom, or interpolated linearly between [zoom, value] stops in ascending zoom order — held at the first stop's value below it and at the last stop's above it.

Example​

const radius: ZoomScaled = [[10, 6], [13, 18], [16, 40]];