Merge pull request #7436 from pjeweb/patch-1

Always use source projection loading image tiles
This commit is contained in:
Andreas Hocevar
2017-11-08 17:01:33 +01:00
committed by GitHub

View File

@@ -241,7 +241,7 @@ ol.source.TileImage.prototype.getTile = function(z, x, y, pixelRatio, projection
!this.getProjection() ||
!projection ||
ol.proj.equivalent(this.getProjection(), projection)) {
return this.getTileInternal(z, x, y, pixelRatio, /** @type {!ol.proj.Projection} */ (projection));
return this.getTileInternal(z, x, y, pixelRatio, /** @type {!ol.proj.Projection} */ (this.getProjection() || projection));
} else {
var cache = this.getTileCacheForProjection(projection);
var tileCoord = [z, x, y];