Skip to content

Commit

Permalink
Use zoom parameter if passed (#5822)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii authored Oct 9, 2017
2 parents 748905c + 0f3aed3 commit 93be1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/tile/TileLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93be1ae

Please sign in to comment.