# MapLayersState

The layers of a map and whether the list is there. In releases after
`0.2.0`, not in `0.2.0` or any earlier release.

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

## Signature

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

## Properties

### catalogue

```ts
readonly catalogue: "loading" | "ready" | "failed";
```

`loading` while the map has not drawn its interface or the catalogue is
still loading, `failed` when the catalogue could not be loaded, and `ready`
once the list is known, empty or not.

### layers

```ts
readonly layers: readonly MapLayerState[];
```

Every layer the map offers, in catalogue order. Empty unless `ready`.

## See also

- [`MapLayerState`](https://docs.mapcairn.com/api/map/MapLayerState.md)

Source: [packages/map/src/element/stores.ts:51](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/element/stores.ts#L51)
