Skip to main content

CatalogueView

What the Layers section needs to know about the catalogue besides its layers.

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

Signature​

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

interface CatalogueView

Properties​

awaited​

readonly awaited: boolean;

True when the catalogue was not ready at mount, so its list arrived or will arrive later and an empty one is worth saying. False for a host whose layers were there from the start.

failed​

readonly failed: boolean;

Whether the last attempt to load failed (see loadFailed), so Try again has something to do.

refresh​

readonly refresh: CatalogueRefresh;

Where a refresh of the list has got to. idle unless ready.

skipped​

readonly skipped: number;

How many definitions the host supplied that were left out. Zero unless ready.

status​

readonly status: CatalogueState["status"];

Whether the catalogue is loading, ready or failed.

See also​

Source: packages/map/src/layers/catalogueView.ts:6