MapLayersState
The layers of a map and whether the list is there. In releases after
0.2.0, not in 0.2.0 or any earlier release.
This is an interface exported by @mapcairn/sdk/browser, checked against version 0.2.0.
Signature
import type { MapLayersState } from "@mapcairn/sdk/browser";
interface MapLayersState
Properties
catalogue
readonly catalogue: "loading" | "ready" | "failed";
loading while the map has not drawn its interface or the catalogue is
still loading, failed when the catalogue could not be loaded, and ready
once the list is known, empty or not.
layers
readonly layers: readonly MapLayerState[];
Every layer the map offers, in catalogue order. Empty unless ready.