loleaflet: set the correct part when prefetching
This commit is contained in:
parent
97fcf892c2
commit
ccd3fb16e1
1 changed files with 1 additions and 0 deletions
|
@ -939,6 +939,7 @@ L.GridLayer = L.Layer.extend({
|
|||
}
|
||||
var interval = 750;
|
||||
var idleTime = 5000;
|
||||
this._preFetchPart = this._currentPart;
|
||||
this._preFetchIdle = setTimeout(L.bind(function () {
|
||||
this._tilesPreFetcher = setInterval(L.bind(this._preFetchTiles, this), interval);
|
||||
}, this), idleTime);
|
||||
|
|
Loading…
Reference in a new issue