Skip to main content

LayerOptions

Properties​

cache?​

cache?: boolean | TileCacheOptions;

Decoded numeric tile cache. Enabled by default and scoped to this layer.


colormap?​

colormap?: string;

colorScale?​

colorScale?: [number, number, number][];

crs?​

crs?: string | null;

dimensionNames?​

dimensionNames?: DimensionNamesProps;

latIsAscending?​

latIsAscending?: boolean;

maximumLevel?​

maximumLevel?: number;

minimumLevel?​

minimumLevel?: number;

multiscaleFormat?​

multiscaleFormat?: MultiscaleFormat;

noDataMax?​

noDataMax?: number;

noDataMin?​

noDataMin?: number;

onAuthError?​

onAuthError?: OnAuthError;

opacity?​

opacity?: number;

proj4?​

proj4?: string | Record<string, unknown>;

Proj4, WKT2, or PROJJSON definition for an arbitrary rectilinear source CRS.


requestOverrides?​

requestOverrides?: RequestOverrides;

scale?​

scale?: [number, number];

selectors?​

selectors?: Record<string, ZarrSelectorsProps>;

store?​

store?: Readable;

Custom Zarrita-compatible store, including an IcechunkStore.


tileHeight?​

tileHeight?: number;

tileWidth?​

tileWidth?: number;

transformRequest?​

transformRequest?: TransformRequest;

url?​

url?: string;

URL to a Zarr store. Required unless store is provided.


variable​

variable: string;

zarrVersion?​

zarrVersion?: 3 | 2 | null;

Zarr version. Defaults to null and is detected by trying v3 before v2.