# LayerLoadRequest

What [`LayerSource`](https://docs.mapcairn.com/api/core/LayerSource.md) needs.

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

## Signature

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

## Properties

### area

```ts
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

```ts
readonly controls: ControlValues;
```

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

### definition

```ts
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`](https://docs.mapcairn.com/api/core/LayerSource.md)).

### now

```ts
readonly now: number;
```

Today, as epoch milliseconds, for relative dates.

### signal

```ts
readonly signal?: AbortSignal;
```

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

## See also

- [`Bounds`](https://docs.mapcairn.com/api/core/Bounds.md)
- [`ControlValues`](https://docs.mapcairn.com/api/core/ControlValues.md)
- [`LayerDefinition`](https://docs.mapcairn.com/api/core/LayerDefinition.md)

Source: [packages/core/src/ports/layers.ts:58](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/layers.ts#L58)
