# LayerItemProps

Props for [`LayerItem`](https://docs.mapcairn.com/api/map/LayerItem.md).

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

## Signature

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

## Properties

### formatters

```ts
readonly formatters: FormatterRegistry;
```

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

### layer

```ts
readonly layer: DataLayerState;
```

The layer to show, with its state.

### layers

```ts
readonly layers: DataLayers;
```

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

### onShow

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

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

## See also

- [`FormatterRegistry`](https://docs.mapcairn.com/api/core/FormatterRegistry.md)
- [`DataLayerState`](https://docs.mapcairn.com/api/map/DataLayerState.md)
- [`DataLayers`](https://docs.mapcairn.com/api/map/DataLayers.md)
- [`LayerFeature`](https://docs.mapcairn.com/api/core/LayerFeature.md)

Source: [packages/map/src/layers/LayerItem.tsx:327](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/LayerItem.tsx#L327)
