mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 20:02:36 +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)
|
const response = await this.map.request.get(url)
|
||||||
if (response?.ok) {
|
if (response?.ok) {
|
||||||
this.clear()
|
this.clear()
|
||||||
await this.map.formatter
|
this.map.formatter
|
||||||
.parse(await response.text(), this.options.remoteData.format)
|
.parse(await response.text(), this.options.remoteData.format)
|
||||||
.then((geojson) => this.fromGeoJSON(geojson))
|
.then((geojson) => this.fromGeoJSON(geojson))
|
||||||
}
|
}
|
||||||
|
@ -1058,7 +1058,7 @@ U.DataLayer = L.Evented.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
importRaw: async function (raw, format) {
|
importRaw: async function (raw, format) {
|
||||||
await this.map.formatter
|
this.map.formatter
|
||||||
.parse(raw, format)
|
.parse(raw, format)
|
||||||
.then((geojson) => this.addData(geojson))
|
.then((geojson) => this.addData(geojson))
|
||||||
.then(() => this.zoomTo())
|
.then(() => this.zoomTo())
|
||||||
|
|
Loading…
Reference in a new issue