This fixes the loading problem

The document now loads and zooms smoothly
private/hcvcastro/forking
Mihai Varga 2015-03-31 19:51:42 +03:00
parent c22280f47c
commit 283b35ab6e
1 changed files with 1 additions and 4 deletions

View File

@ -585,9 +585,6 @@ L.GridLayer = L.Layer.extend({
// tile is already added, between the first request and the response
// from the server there might have been other request, which are now
// invalid
this._tiles[key].current = true;
this._tiles[key].active = false;
this._tiles[key].loaded = +new Date();
return;
}
this._initTile(tile);
@ -631,7 +628,7 @@ L.GridLayer = L.Layer.extend({
var key = this._tileCoordsToKey(coords);
tile = this._tiles[key];
if (!tile) { return; }
if (!tile || tile.loaded !== undefined ) { return; }
tile.loaded = +new Date();
if (this._map._fadeAnimated) {