loleaflet: set the correct part when prefetching

This commit is contained in:
Mihai Varga 2015-09-01 13:24:40 +03:00
parent 97fcf892c2
commit ccd3fb16e1

View file

@ -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);