# DetailState

A feature's affected area, loaded on request.

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

## Signature

```ts
import type { DetailState } from "@mapcairn/map";
 
interface DetailState
```

## Properties

### featureId

```ts
readonly featureId: string;
```

The feature whose affected area this is.

### layerId

```ts
readonly layerId: string;
```

The layer the feature belongs to.

### shapes

```ts
readonly shapes: readonly LayerFeature[];
```

The shapes to draw. Empty until `status` is `shown`.

### status

```ts
readonly status: "loading" | "shown" | "error";
```

`loading` while the provider answers, `shown` once the shapes are there, `error` when the request failed.

## See also

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

Source: [packages/map/src/layers/useDataLayers.ts:112](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/useDataLayers.ts#L112)
