# TurnedOff

The batch of layers that was last turned off at once, which Undo would turn back on.

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

## Signature

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

## Properties

### count

```ts
readonly count: number;
```

How many layers Undo would turn back on: those of the batch that are still off and still in the catalogue.

### group

```ts
readonly group: string | null;
```

The `group` the ui passed to `turnOff`, or null when the action covered every layer.

### ids

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

The ids Undo would turn back on, so the ui can find the group they belong to by its layers, whatever the language calls it.

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