Add pixelRatio to ol.source.Image#createImage

This commit is contained in:
Frederic Junod
2013-12-16 12:08:11 +01:00
parent ca0b77d0e3
commit 78ec21fb85
4 changed files with 7 additions and 4 deletions

View File

@@ -85,7 +85,8 @@ ol.source.ImageWMS.prototype.getImage =
var height = (extent[3] - extent[1]) / resolution;
var size = [width, height];
this.image_ = this.createImage(extent, resolution, size, projection);
this.image_ = this.createImage(
extent, resolution, pixelRatio, size, projection);
return this.image_;
};