Add pixelRatio param to ol.Image constructor

This commit is contained in:
Frederic Junod
2013-12-16 12:48:58 +01:00
parent 78ec21fb85
commit db322f9ade
4 changed files with 20 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ ol.source.ImageWMS.prototype.getImage =
var image = this.image_;
if (!goog.isNull(image) &&
image.getResolution() == resolution &&
image.getPixelRatio() == pixelRatio &&
ol.extent.containsExtent(image.getExtent(), extent)) {
return image;
}