Skip to main content

LayersUrlState

The data layers in a link: which are on, and their control values.

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

Signature​

import type { LayersUrlState } from "@mapcairn/core";

interface LayersUrlState

Properties​

controls​

readonly controls: Readonly<Record<string, Readonly<Record<string, string>>>>;

Control values by layer id, then control id. Untrusted until resolved.

dropped​

readonly dropped?: number;

How many distinct readable ids a link carried past the limit on layers (the first ones are kept), so the interface can say they were left out. Set only when an address is read and left out when it is zero. It is never written to an address.

enabled​

readonly enabled: readonly string[];

Layer ids, in the order they were turned on.

Source: packages/core/src/ports/url.ts:6