Skip to main content

LocateOptions

Options for a single location request.

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

Signature​

import type { LocateOptions } from "@mapcairn/sdk/browser";

interface LocateOptions

Properties​

signal​

readonly signal?: AbortSignal;

Cancels the request. It then rejects with a PortAbortError.

timeoutMs​

readonly timeoutMs?: number;

How long to wait for a fix, in milliseconds, before rejecting.