Skip to main content

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​

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

interface TurnedOff

Properties​

count​

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​

readonly group: string | null;

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

ids​

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