mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 11:52:38 +02:00
wip: no need for await here
This commit is contained in:
parent
cc6ae95371
commit
1b8b130805
1 changed files with 2 additions and 2 deletions
|
@ -792,7 +792,7 @@ U.DataLayer = L.Evented.extend({
|
|||
const response = await this.map.request.get(url)
|
||||
if (response?.ok) {
|
||||
this.clear()
|
||||
await this.map.formatter
|
||||
this.map.formatter
|
||||
.parse(await response.text(), this.options.remoteData.format)
|
||||
.then((geojson) => this.fromGeoJSON(geojson))
|
||||
}
|
||||
|
@ -1058,7 +1058,7 @@ U.DataLayer = L.Evented.extend({
|
|||
},
|
||||
|
||||
importRaw: async function (raw, format) {
|
||||
await this.map.formatter
|
||||
this.map.formatter
|
||||
.parse(raw, format)
|
||||
.then((geojson) => this.addData(geojson))
|
||||
.then(() => this.zoomTo())
|
||||
|
|
Loading…
Reference in a new issue