# FeatureQueryRequest

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

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

## Signature

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

## Properties

### area

```ts
readonly area: QueryArea;
```

Where to look.

### layerIds

```ts
readonly layerIds: readonly string[];
```

The layers to look in, and no others. Empty asks about nothing.

### limit

```ts
readonly limit: number;
```

The most hits to return, a whole number of at least 1. A caller that has
room for `n` more asks for `n + 1`, so that `n + 1` hits back tell it that
more lie inside, and the host can stop looking once it has them.

### signal

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

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

## See also

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

Source: [packages/core/src/ports/featureQuery.ts:31](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/featureQuery.ts#L31)
