Skip to content

Commit de2e3f7

Browse files
author
Christopher Mardell
committed
Include metadata object for all input types. Fix GeoTIFF#83
1 parent 686ba4e commit de2e3f7

9 files changed

+445
-87
lines changed

dist/georaster.browser.bundle.js

Lines changed: 416 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/georaster.browser.bundle.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/georaster.bundle.js

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/georaster.bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,14 @@ class GeoRaster {
7777
this._data = data;
7878
this.rasterType = 'geotiff';
7979
this.sourceType = 'ArrayBuffer';
80-
this._metadata = metadata;
8180
} else if (Array.isArray(data) && metadata) {
8281
this._data = data;
8382
this.rasterType = 'object';
84-
this._metadata = metadata;
8583
}
8684
if ( metadata && metadata.readOnDemand !== undefined ) {
8785
this.readOnDemand = metadata.readOnDemand;
8886
}
87+
this._metadata = metadata;
8988

9089
if (debug) console.log('this after construction:', this);
9190
}

0 commit comments

Comments
 (0)