From 91c3b098df681ca0c3f671309814b3d524c5fef5 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 4 Apr 2025 18:45:31 +0200 Subject: [PATCH] wip: return data in DataLayer.importRaw --- umap/static/umap/js/modules/data/layer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index a742755b..febef6dc 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -528,8 +528,9 @@ export class DataLayer { .parse(raw, format) .then((geojson) => { this.sync.startBatch() - this.addData(geojson) + const data = this.addData(geojson) this.sync.commitBatch() + return data }) .catch((error) => { console.debug(error)