Fix submap: Wrong typedarray usage for precipitation (#778)

* 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 <monk@geotronic.hu>
This commit is contained in:
Gergely Mészáros, Ph.D 2022-04-19 08:16:49 +02:00 committed by GitHub
parent 73434f5bb7
commit b00a8a2228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;