Skip to content

Commit

Permalink
updated microlink
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Dec 3, 2023
1 parent aa214a0 commit 35ed187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"geotiff": "^2.1.0",
"geotiff-tile": "^0.18.3",
"get-depth": "^0.0.3",
"microlink": "^0.2.0",
"microlink": "0.3.0",
"quick-lru": "^7.0.0",
"xdim": "^1.10.1"
},
Expand Down
2 changes: 1 addition & 1 deletion template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const absolutify = url => {
};

async function createWorker(options) {
const debug_level = typeof options === "object" && typeof options.debugLevel === "number" ? options.debugLevel : 0;
const debug_level = typeof options === "object" && typeof options.debug_level === "number" ? options.debug_level : 0;
const useFrameWorker = typeof options === "object" && options.iframe === true;
if (debug_level >= 1) console.log("[geotiff-tile-web-worker:createWorker] useFrameWorker is " + useFrameWorker);
const WebWorker = useFrameWorker === false && typeof Worker === "function" ? Worker : FrameWorker;
Expand Down
6 changes: 3 additions & 3 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@

test("iframe", async ({ eq }) => {
try {
const worker = await geotiff_tile_web_worker.createWorker({ debugLevel: 0, iframe: true });
const worker = await geotiff_tile_web_worker.createWorker({ debug_level: 0, iframe: true });
console.log("created worker:", worker);

const created = await worker.createTile({ ...PARAMS, timed: false });
console.log("created tile");
console.log("created tile", created);
const { tile, height, width } = created;

eq(tile[0][0].constructor.name, "Uint8Array");
Expand Down Expand Up @@ -342,7 +342,7 @@
const params = {
bbox: [128, 656, 144, 672],
bbox_srs: "simple",
debug_level: 4,
debug_level: 0,
method: "near-vectorize",
round: false,
tile_array_types: ["Array", "Array", "Array"],
Expand Down

0 comments on commit 35ed187

Please sign in to comment.