# BasemapAvailability

What [`useBasemapAvailability`](https://docs.mapcairn.com/api/map/useBasemapAvailability.md) returns.

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

## Signature

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

## Properties

### clear

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

Marks one basemap, or every basemap when no id is given, available again.

### markUnavailable

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

Marks a basemap unavailable. The mark lapses after
`UNAVAILABLE_FOR_MS`, so a provider that recovers returns without a
reload, and marking it again restarts that time.

### unavailable

```ts
readonly unavailable: ReadonlySet<string>;
```

The ids of the basemaps that are not working right now. Held in memory, never stored.

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