fix tile filtering after #2160
This commit is contained in:
parent
e2977a1244
commit
04776b7ad8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user