Fix variable declared globally by mistake
This can have an impact in map listing, because dataToload will be shared.
This commit is contained in:
parent
9eea9f942d
commit
41ec18a08d
1 changed files with 5 additions and 1 deletions
|
@ -397,7 +397,11 @@ L.U.Map.include({
|
||||||
|
|
||||||
loadDatalayers: function (force) {
|
loadDatalayers: function (force) {
|
||||||
force = force || L.Util.queryString('download') // In case we are in download mode, let's go strait to loading all data
|
force = force || L.Util.queryString('download') // In case we are in download mode, let's go strait to loading all data
|
||||||
let toload = (dataToload = total = this.datalayers_index.length)
|
const total = this.datalayers_index.length
|
||||||
|
// toload => datalayer metadata remaining to load (synchronous)
|
||||||
|
// dataToload => datalayer data remaining to load (asynchronous)
|
||||||
|
let toload = total,
|
||||||
|
dataToload = total
|
||||||
let datalayer
|
let datalayer
|
||||||
const loaded = () => {
|
const loaded = () => {
|
||||||
this.datalayersLoaded = true
|
this.datalayersLoaded = true
|
||||||
|
|
Loading…
Reference in a new issue