# LayerItem

One layer in the Layers section: its switch, and while it is on, its
status, controls, legend, disclaimer and list. Everything
comes from the definition.

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

## Signature

```ts
import { LayerItem } from "@mapcairn/map";
 
function LayerItem(input: LayerItemProps): JSX.Element;
```

## Parameters

- `{ layer, layers, formatters, onShow, }`
- `input` (`LayerItemProps`)

## Returns

`JSX.Element`

## See also

- [`LayerItemProps`](https://docs.mapcairn.com/api/map/LayerItemProps.md)

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