From b00a8a222822b8da6d20098272b8aad103c130f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20M=C3=A9sz=C3=A1ros=2C=20Ph=2ED?= Date: Tue, 19 Apr 2022 08:16:49 +0200 Subject: [PATCH] Fix submap: Wrong typedarray usage for precipitation (#778) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Redraw emblems after resample. * Remove aspect change feature on submaps to support more useful crop operation. * Fix wrong type for prec typedArray Co-authored-by: Mészáros Gergely --- modules/submap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/submap.js b/modules/submap.js index 09853f97..92d30865 100644 --- a/modules/submap.js +++ b/modules/submap.js @@ -58,7 +58,7 @@ window.Submap = (function () { const n = grid.points.length; grid.cells.h = new Uint8Array(n); // heightmap grid.cells.temp = new Int8Array(n); // temperature - grid.cells.prec = new Int8Array(n); // precipitation + grid.cells.prec = new Uint8Array(n); // precipitation const reverseGridMap = new Uint32Array(n); // cellmap from new -> oldcell const oldGrid = parentMap.grid;