Merge pull request #1382 from umap-project/fix-global-variable
Fix variable declared globally by mistake
This commit is contained in:
commit
60a0f14439
1 changed files with 5 additions and 1 deletions
|
@ -397,7 +397,11 @@ L.U.Map.include({
|
|||
|
||||
loadDatalayers: function (force) {
|
||||
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
|
||||
const loaded = () => {
|
||||
this.datalayersLoaded = true
|
||||
|
|
Loading…
Reference in a new issue