Revert "Merge pull request #4344 from bartvde/issue-2844"
This reverts commite5c44b37c9, reversing changes made to7f4c6e3634.
This commit is contained in:
@@ -193,19 +193,15 @@ ol.renderer.canvas.ImageLayer.prototype.prepareFrame =
|
||||
var imageExtent = image.getExtent();
|
||||
var imageResolution = image.getResolution();
|
||||
var imagePixelRatio = image.getPixelRatio();
|
||||
var xImageResolution = imageResolution[0];
|
||||
var yImageResolution = imageResolution[1];
|
||||
var xScale = pixelRatio * xImageResolution /
|
||||
(viewResolution * imagePixelRatio);
|
||||
var yScale = pixelRatio * yImageResolution /
|
||||
var scale = pixelRatio * imageResolution /
|
||||
(viewResolution * imagePixelRatio);
|
||||
ol.vec.Mat4.makeTransform2D(this.imageTransform_,
|
||||
pixelRatio * frameState.size[0] / 2,
|
||||
pixelRatio * frameState.size[1] / 2,
|
||||
xScale, yScale,
|
||||
scale, scale,
|
||||
viewRotation,
|
||||
imagePixelRatio * (imageExtent[0] - viewCenter[0]) / xImageResolution,
|
||||
imagePixelRatio * (viewCenter[1] - imageExtent[3]) / yImageResolution);
|
||||
imagePixelRatio * (imageExtent[0] - viewCenter[0]) / imageResolution,
|
||||
imagePixelRatio * (viewCenter[1] - imageExtent[3]) / imageResolution);
|
||||
this.imageTransformInv_ = null;
|
||||
this.updateAttributions(frameState.attributions, image.getAttributions());
|
||||
this.updateLogos(frameState, imageSource);
|
||||
|
||||
Reference in New Issue
Block a user