Skip to main content

UseLocateOptions

Options for useLocate.

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

Signature​

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

interface UseLocateOptions

Properties​

announceErrors​

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​

readonly timeoutMs?: number;

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

Source: packages/map/src/tools/locate/useLocate.ts:25