Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/geotiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ export { MultiGeoTIFF };
* @returns {Promise<GeoTIFF>} The resulting GeoTIFF file.
*/
export async function fromUrl(url, options = {}, signal) {
return GeoTIFF.fromSource(makeRemoteSource(url, options), signal);
return GeoTIFF.fromSource(makeRemoteSource(url, options), options, signal);
}

/**
Expand All @@ -695,7 +695,7 @@ export async function fromUrl(url, options = {}, signal) {
* @returns {Promise<GeoTIFF>} The resulting GeoTIFF file.
*/
export async function fromCustomClient(client, options = {}, signal) {
return GeoTIFF.fromSource(makeCustomSource(client, options), signal);
return GeoTIFF.fromSource(makeCustomSource(client, options), options, signal);
}

/**
Expand All @@ -707,7 +707,7 @@ export async function fromCustomClient(client, options = {}, signal) {
* @returns {Promise<GeoTIFF>} The resulting GeoTIFF file.
*/
export async function fromArrayBuffer(arrayBuffer, signal) {
return GeoTIFF.fromSource(makeBufferSource(arrayBuffer), signal);
return GeoTIFF.fromSource(makeBufferSource(arrayBuffer), {}, signal);
}

/**
Expand All @@ -723,7 +723,7 @@ export async function fromArrayBuffer(arrayBuffer, signal) {
* @returns {Promise<GeoTIFF>} The resulting GeoTIFF file.
*/
export async function fromFile(path, signal) {
return GeoTIFF.fromSource(makeFileSource(path), signal);
return GeoTIFF.fromSource(makeFileSource(path), {}, signal);
}

/**
Expand All @@ -737,7 +737,7 @@ export async function fromFile(path, signal) {
* @returns {Promise<GeoTIFF>} The resulting GeoTIFF file.
*/
export async function fromBlob(blob, signal) {
return GeoTIFF.fromSource(makeFileReaderSource(blob), signal);
return GeoTIFF.fromSource(makeFileReaderSource(blob), {}, signal);
}

/**
Expand All @@ -752,9 +752,9 @@ export async function fromBlob(blob, signal) {
* @returns {Promise<MultiGeoTIFF>} The resulting MultiGeoTIFF file.
*/
export async function fromUrls(mainUrl, overviewUrls = [], options = {}, signal) {
const mainFile = await GeoTIFF.fromSource(makeRemoteSource(mainUrl, options), signal);
const mainFile = await GeoTIFF.fromSource(makeRemoteSource(mainUrl), options, signal);
const overviewFiles = await Promise.all(
overviewUrls.map((url) => GeoTIFF.fromSource(makeRemoteSource(url, options))),
overviewUrls.map((url) => GeoTIFF.fromSource(makeRemoteSource(url), options, signal)),
);

return new MultiGeoTIFF(mainFile, overviewFiles);
Expand Down
Loading