From 19f7f2508e2e6f3e63511994a5d5309adc015e02 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 27 Aug 2024 14:04:02 +0200 Subject: [PATCH] fix: geoJSON export - fix array level --- index.html | 2 +- modules/io/export.js | 2 +- versioning.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0ab91b63..0b950397 100644 --- a/index.html +++ b/index.html @@ -8063,6 +8063,6 @@ - + diff --git a/modules/io/export.js b/modules/io/export.js index 71c801be..15e2b020 100644 --- a/modules/io/export.js +++ b/modules/io/export.js @@ -456,7 +456,7 @@ function saveGeoJsonCells() { const [x, y] = vertices.p[vertex]; return getCoordinates(x, y, 4); }); - return [...coordinates, coordinates[0]]; + return [[...coordinates, coordinates[0]]]; } cells.i.forEach(i => { diff --git a/versioning.js b/versioning.js index 253455d8..72c8f037 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.99.13"; // generator version, update each time +const version = "1.99.14"; // generator version, update each time { document.title += " v" + version;