Fix hit detection for image layers

This commit is contained in:
Andreas Hocevar
2017-09-06 07:33:07 +02:00
parent ab59f79f6a
commit c15aa414bd

View File

@@ -136,7 +136,7 @@ ol.renderer.canvas.ImageLayer.prototype.prepareFrame = function(frameState, laye
this.updateAttributions(frameState.attributions, image.getAttributions());
this.updateLogos(frameState, imageSource);
this.renderedResolution = viewResolution * pixelRatio / imagePixelRatio;
this.renderedResolution = imageResolution * pixelRatio / imagePixelRatio;
}
return !!this.image_;