Skip to main content

DetailState

A feature's affected area, loaded on request.

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

Signature​

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

interface DetailState

Properties​

featureId​

readonly featureId: string;

The feature whose affected area this is.

layerId​

readonly layerId: string;

The layer the feature belongs to.

shapes​

readonly shapes: readonly LayerFeature[];

The shapes to draw. Empty until status is shown.

status​

readonly status: "loading" | "shown" | "error";

loading while the provider answers, shown once the shapes are there, error when the request failed.

See also​

Source: packages/map/src/layers/useDataLayers.ts:112