Use zoom parameter if passed (#5822)

This commit is contained in:
Andrew 2017-10-09 18:17:51 +02:00 committed by GitHub
commit 93be1ae0a7

View File

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