[Pkg-javascript-commits] [leaflet] 235/301: fix maxNativeZoom on retina tile layer, close #1859, ref #1798

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:53 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 840be7a27a4f9ae03e41638827076217ff43b36f
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Wed Nov 13 13:30:27 2013 +0200

    fix maxNativeZoom on retina tile layer, close #1859, ref #1798
---
 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 467b89f..d2a3997 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -268,7 +268,7 @@ L.TileLayer = L.Class.extend({
 
 	_getTileSize: function () {
 		var map = this._map,
-		    zoom = map.getZoom(),
+		    zoom = map.getZoom() + this.options.zoomOffset,
 		    zoomN = this.options.maxNativeZoom,
 		    tileSize = 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