Fix for reprojecting opaque tile sources

This commit is contained in:
Petr Sloup
2016-01-06 12:57:11 +01:00
parent 5504916b80
commit 2c3ed38714
3 changed files with 17 additions and 2 deletions

View File

@@ -120,6 +120,20 @@ ol.source.TileImage.prototype.expireCache = function(projection, usedTiles) {
};
/**
* @inheritDoc
*/
ol.source.TileImage.prototype.getOpaque = function(projection) {
if (ol.ENABLE_RASTER_REPROJECTION &&
this.getProjection() && projection &&
!ol.proj.equivalent(this.getProjection(), projection)) {
return false;
} else {
return goog.base(this, 'getOpaque', projection);
}
};
/**
* @inheritDoc
*/