# MapKeyProps

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

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

## Signature

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

## Properties

### defaultMinimised

```ts
readonly defaultMinimised?: boolean;
```

Whether the key starts minimised. Left out, a phone in either orientation
starts it minimised (the viewport is narrower than the bottom sheet's
width or shorter than the side panel's height threshold) and a larger
screen starts it open. It is decided when the key first appears, so
turning the phone does not change it, and the person's own choice
replaces it from then on.

### layers

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

The layers state, whose enabled layers the key lists.

## See also

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

Source: [packages/map/src/layers/MapKey.tsx:22](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/MapKey.tsx#L22)
