From caa9d8622bf40a4ed8c40457ec31ea8ead4a701b Mon Sep 17 00:00:00 2001 From: Krzysztof Urbaniak Date: Sat, 14 Dec 2013 16:54:29 +0100 Subject: [PATCH] fix retina condition --- 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 15821897..aafa06fc 100644 --- a/src/layer/tile/TileLayer.js +++ b/src/layer/tile/TileLayer.js @@ -63,7 +63,7 @@ L.TileLayer = L.GridLayer.extend({ getTileUrl: function (coords) { return L.Util.template(this._url, L.extend({ - r: this.options.detectRetina && L.Browser.retina && this.options.maxZoom > 0 ? '' : '@2x', + r: this.options.detectRetina && L.Browser.retina && this.options.maxZoom > 0 ? '@2x' : '', s: this._getSubdomain(coords), x: coords.x, y: this.options.tms ? this._tileNumBounds.max.y - coords.y : coords.y,