use zoom parameter if passed

This commit is contained in:
Rajesh Sharma 2017-10-04 17:49:40 +05:45 committed by GitHub
parent 000f457fcb
commit 0f3aed37b9

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;