diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 09f4bea48..202fb0db0 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1173,8 +1173,9 @@ L.TileLayer = L.GridLayer.extend({ var size = e ? e.newSize : this._map.getSize(); var widthTwips = size.x * this._map.options.tileWidthTwips / this._tileSize; maxZoom = maxZoom ? maxZoom : this._map.options.zoom; - if (this._docType !== 'spreadsheet' || !e) { - // If it's not a spreadsheet or the method has been invoked manually + + // 'fit width zoom' has no use in spreadsheets, ignore it there + if (this._docType !== 'spreadsheet') { var crsScale = this._map.options.crs.scale(1); if (this._docWidthTwips > 0) {