Use the image pixelRatio in ol.renderer.canvas.ImageLayer

This commit is contained in:
Frederic Junod
2013-12-16 17:07:37 +01:00
parent db322f9ade
commit c84782bfc6
3 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ ol.source.ImageWMS.prototype.getImage =
ol.extent.scaleFromCenter(extent, this.ratio_);
var width = (extent[2] - extent[0]) / resolution;
var height = (extent[3] - extent[1]) / resolution;
var size = [width, height];
var size = [width * pixelRatio, height * pixelRatio];
this.image_ = this.createImage(
extent, resolution, pixelRatio, size, projection);