Skip to content

Interface: FetchProjectionOptions ​

Defined in: epsg.ts:67

Options for fetchProjection.

Properties ​

baseUrl? ​

ts
optional baseUrl?: string;

Defined in: epsg.ts:75

Override the service origin — a mirror, or a proxy that adds CORS headers.


fetch? ​

ts
optional fetch?: {
  (input, init?): Promise<Response>;
  (input, init?): Promise<Response>;
};

Defined in: epsg.ts:77

Substitute for globalThis.fetch, for tests or a custom agent.

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
ParameterType
inputURL | RequestInfo
init?RequestInit
Returns ​

Promise<Response>

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
ParameterType
inputstring | URL | Request
init?RequestInit
Returns ​

Promise<Response>


format? ​

ts
optional format?: ProjectionFormat;

Defined in: epsg.ts:69

Which WKT flavour to request. Defaults to 'esri-wkt', for a .prj.


signal? ​

ts
optional signal?: AbortSignal;

Defined in: epsg.ts:71

Abort the request early. Combined with timeoutMs if both are given.


timeoutMs? ​

ts
optional timeoutMs?: number;

Defined in: epsg.ts:73

Give up after this many milliseconds. Defaults to 10000. Pass 0 to disable.

Released under the MIT License.