# BasemapPickerProps

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

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

## Signature

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

## Properties

### onChange

```ts
readonly onChange: (id: string) => void;
```

Called with the id of the tile the user pressed. Pressing the tile that
is already shown calls it too, because a host whose default follows the
theme takes that as the person choosing it, so it stays when the theme
changes.

### value

```ts
readonly value: string;
```

The chosen basemap id. An id that names no basemap on offer is shown as
the default basemap.

Source: [packages/map/src/panels/BasemapPicker/BasemapPicker.tsx:39](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/panels/BasemapPicker/BasemapPicker.tsx#L39)
