Skip to main content

readyLayers

The layers a state offers: its list when ready, and none while the catalogue is loading or has failed. The same array every time for a state, so it is safe in a dependency list.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { readyLayers } from "@mapcairn/core";

function readyLayers(state: CatalogueState): readonly LayerDefinition[];

Parameters​

  • state (CatalogueState)

Returns​

readonly LayerDefinition[]

See also​

Source: packages/core/src/layers/catalogueState.ts:34