Use zoom parameter if passed (#5822)
This commit is contained in:
commit
93be1ae0a7
@ -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: this._getZoomForUrl()
|
z: coords.z ? coords.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;
|
||||||
|
Loading…
Reference in New Issue
Block a user