# UseLocateOptions

Options for [`useLocate`](https://docs.mapcairn.com/api/map/useLocate-function.md).

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

## Signature

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

## Properties

### announceErrors

```ts
readonly announceErrors?: boolean;
```

Whether to announce errors through the announcer. Defaults to true. Pass
false when the app shows `message` in an error `StatusMessage`, which is
an alert itself, so the error is spoken once. A fix is always announced.

### timeoutMs

```ts
readonly timeoutMs?: number;
```

Passed to the provider, which decides its own default when absent.

Source: [packages/map/src/tools/locate/useLocate.ts:25](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/locate/useLocate.ts#L25)
