Merge pull request #234 from giscloud/master
fixed occasionally stuck tiles
This commit is contained in:
commit
88a808c0a9
@ -192,7 +192,10 @@ L.TileLayer = L.Class.extend({
|
||||
if (!this.options.noWrap) {
|
||||
tilePoint.x = ((tilePoint.x % tileLimit) + tileLimit) % tileLimit;
|
||||
}
|
||||
if (tilePoint.y < 0 || tilePoint.y >= tileLimit) { return; }
|
||||
if (tilePoint.y < 0 || tilePoint.y >= tileLimit) {
|
||||
this._tilesToLoad--;
|
||||
return;
|
||||
}
|
||||
|
||||
// create tile
|
||||
var tile = this._createTile();
|
||||
|
Loading…
Reference in New Issue
Block a user