Skip to content

Commit

Permalink
fix tile filtering after Leaflet#2160
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Nov 6, 2013
1 parent e2977a1 commit 04776b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/tile/TileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 04776b7

Please sign in to comment.