Skip to main content

LayerLoadRequest

What LayerSource needs.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { LayerLoadRequest } from "@mapcairn/core";

interface LayerLoadRequest

Properties​

area​

readonly area?: Bounds;

The box of the map a query layer asks for (see queryWindow). Required for a query layer and ignored for any other. A box across the antimeridian has east past 180, and the source asks for each side of the line (see feedUrls).

controls​

readonly controls: ControlValues;

Every control's value, already resolved (see resolveControlValues).

definition​

readonly definition: LayerDefinition;

A feed, query or heatmap layer. Tile layers have nothing to load: a tile layer's identify block is read when a tap asks (see LayerSource).

now​

readonly now: number;

Today, as epoch milliseconds, for relative dates.

signal​

readonly signal?: AbortSignal;

Cancels the request. It then rejects with an aborted error.

See also​

Source: packages/core/src/ports/layers.ts:58