Fix for reprojecting opaque tile sources
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user