Classes
Methods
(static) makeBufferSource(arrayBuffer)
Create a new source to read from a local ArrayBuffer.
Parameters:
Name | Type | Description |
---|---|---|
arrayBuffer |
ArrayBuffer | The ArrayBuffer to parse the GeoTIFF from. |
Returns:
The constructed source
(static) makeFetchSource(url, optionsopt)
Create a new source to read from a remote file using the fetch API.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | The URL to send requests to. |
|||||||||||||
options |
Object |
<optional> |
Additional options. Properties
|
Returns:
The constructed source
(static) makeFileReaderSource(file)
Create a new source from a given file/blob.
Parameters:
Name | Type | Description |
---|---|---|
file |
Blob | The file or blob to read from. |
Returns:
The constructed source
(static) makeFileSource(path)
Creates a new source using the node filesystem API.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | The path to the file in the local filesystem. |
Returns:
The constructed source
(static) makeRemoteSource(url, optionsopt)
Create a new source to read from a remote file. Uses either XHR or fetch.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | The URL to send requests to. |
|||||||||||||
options |
Object |
<optional> |
Additional options. Properties
|
Returns:
The constructed source
(static) makeXHRSource(url, optionsopt)
Create a new source to read from a remote file using the XHR API.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | The URL to send requests to. |
|||||||||||||
options |
Object |
<optional> |
Additional options. Properties
|
Returns:
The constructed source