fix tile filtering after #2160

This commit is contained in:
Vladimir Agafonkin 2013-11-07 00:07:21 +02:00
parent e2977a1244
commit 04776b7ad8

View File

@ -355,8 +355,8 @@ L.TileLayer = L.Class.extend({
var limit = this._getWrapTileNum();
// don't load if exceeds world bounds
if ((options.noWrap && (tilePoint.x < 0 || tilePoint.x >= limit)) ||
tilePoint.y < 0 || tilePoint.y >= limit) { return false; }
if ((options.noWrap && (tilePoint.x < 0 || tilePoint.x >= limit.x)) ||
tilePoint.y < 0 || tilePoint.y >= limit.y) { return false; }
}
if (options.bounds) {