UseDataLayersOptions
Options for useDataLayers.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { UseDataLayersOptions } from "@mapcairn/map";
interface UseDataLayersOptions
Properties
initial
readonly initial?: LayersUrlState;
Layers and control values from a permalink. Control values are resolved
against each layer's definition, so an invalid one becomes the default.
A layer the catalogue has not got is dropped. A catalogue that is still
loading has no layers yet, so the link's layers wait for its first list
and stay in DataLayers meanwhile; one that is not there
when the list arrives is dropped then, and said once, for good. The ids
the link carried past its limit (initial.dropped) are said in the same
message.
now
readonly now?: () => number;
The clock. Defaults to Date.now.