Use the image pixelRatio in ol.renderer.canvas.ImageLayer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user