Revert "use zoom parameter if passed" (#6006)

This commit is contained in:
Andrew 2018-01-16 19:10:05 +01:00 committed by ghybs
parent 4704037365
commit bfbaf6522e

View File

@ -164,7 +164,7 @@ export var TileLayer = GridLayer.extend({
s: this._getSubdomain(coords), s: this._getSubdomain(coords),
x: coords.x, x: coords.x,
y: coords.y, y: coords.y,
z: coords.z ? coords.z : this._getZoomForUrl() z: this._getZoomForUrl()
}; };
if (this._map && !this._map.options.crs.infinite) { if (this._map && !this._map.options.crs.infinite) {
var invertedY = this._globalTileRange.max.y - coords.y; var invertedY = this._globalTileRange.max.y - coords.y;