Merge pull request #234 from giscloud/master

fixed occasionally stuck tiles
This commit is contained in:
Vladimir Agafonkin 2011-08-09 14:34:25 -07:00
commit 88a808c0a9

View File

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