mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
wip: return data in DataLayer.importRaw
This commit is contained in:
parent
b342480f3b
commit
91c3b098df
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue