[Pkg-javascript-commits] [leaflet] 257/301: fix world wrap with detectRetina, close #2190, cc @perliedman

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:55 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 81ae1794d3618694cd6e1c253945d4edbd503dce
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Nov 14 18:58:16 2013 +0200

    fix world wrap with detectRetina, close #2190, cc @perliedman
---
 src/layer/tile/TileLayer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index d2a3997..d8cb02e 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -474,7 +474,7 @@ L.TileLayer = L.Class.extend({
 
 	_getWrapTileNum: function () {
 		var crs = this._map.options.crs,
-		    size = crs.getSize(this._getZoomForUrl());
+		    size = crs.getSize(this._map.getZoom());
 		return size.divideBy(this.options.tileSize);
 	},
 

-- 
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