Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Feb 12, 2018
1 parent e1a483c commit 762cd98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/dem_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class DEMData {
this.loaded = !!data;
}

loadFromImage(data: RGBAImage, encoding?: "mapbox" | "terrarium") {
loadFromImage(data: RGBAImage, encoding: "mapbox" | "terrarium") {
if (data.height !== data.width) throw new RangeError('DEM tiles must be square');
if (encoding && encoding !== "mapbox" && encoding !== "terrarium") return util.warnOnce(`"${encoding}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);
// Build level 0
Expand Down
2 changes: 1 addition & 1 deletion src/source/raster_dem_tile_worker_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RasterDEMTileWorkerSource {

loadTile(params: WorkerDEMTileParameters, callback: WorkerDEMTileCallback) {
const uid = params.uid,
encoding = params.encoding || "mapbox";
encoding = params.encoding;

const dem = new DEMData(uid);
this.loading[uid] = dem;
Expand Down

0 comments on commit 762cd98

Please sign in to comment.