Skip to main content

UNDO_TIMEOUT_MS

How long the Undo after turning layers off stays on offer, in milliseconds. It is not shorter than a status message's shortest stay, so there is time to read it and to reach Undo by keyboard.

This is a constant exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { UNDO_TIMEOUT_MS } from "@mapcairn/map";

UNDO_TIMEOUT_MS = 10000

Source: packages/map/src/layers/useDataLayers.ts:83