Skip to main content

LayerItemProps

Props for LayerItem.

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

Signature​

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

interface LayerItemProps

Properties​

formatters​

readonly formatters: FormatterRegistry;

The formatters the layer's list and card templates may name.

layer​

readonly layer: DataLayerState;

The layer to show, with its state.

layers​

readonly layers: DataLayers;

The layers state, for the actions the item offers (turn on, sort, retry).

onShow​

readonly onShow: (layerId: string, feature: LayerFeature) => void;

Called with a feature when the person chooses Show on map for it.

See also​

Source: packages/map/src/layers/LayerItem.tsx:327