[Pkg-javascript-commits] [leaflet] 194/301: fix tile filtering after #2160

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 04776b7ad82ea5246a414f62b8ce8ebff52f3aab
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Nov 7 00:07:21 2013 +0200

    fix tile filtering after #2160
---
 src/layer/tile/TileLayer.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index 4538a7c..0f27b06 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list