fix retina condition

This commit is contained in:
Krzysztof Urbaniak 2013-12-14 16:54:29 +01:00
parent de1a62fa52
commit caa9d8622b

View File

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