Add pixelRatio to ol.source.Image#getImage

This commit is contained in:
Frederic Junod
2013-12-12 15:16:59 +01:00
parent 79ade07fb7
commit ca0b77d0e3
7 changed files with 10 additions and 9 deletions

View File

@@ -78,8 +78,8 @@ ol.renderer.canvas.ImageLayer.prototype.prepareFrame =
var hints = frameState.viewHints;
if (!hints[ol.ViewHint.ANIMATING] && !hints[ol.ViewHint.INTERACTING]) {
image = imageSource.getImage(
frameState.extent, viewResolution, view2DState.projection);
image = imageSource.getImage(frameState.extent, viewResolution,
frameState.devicePixelRatio, view2DState.projection);
if (!goog.isNull(image)) {
var imageState = image.getState();
if (imageState == ol.ImageState.IDLE) {