fix maxNativeZoom on retina tile layer, close #1859, ref #1798

This commit is contained in:
Vladimir Agafonkin 2013-11-13 13:30:27 +02:00
parent 9fc4e661d6
commit 840be7a27a

View File

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