diff --git a/src/ol/source/rastersource.js b/src/ol/source/rastersource.js index 0bbe181d81..02ed2c6879 100644 --- a/src/ol/source/rastersource.js +++ b/src/ol/source/rastersource.js @@ -318,7 +318,10 @@ ol.source.Raster.prototype.onWorkerComplete_ = this.dispatchEvent(new ol.source.RasterEvent( ol.source.RasterEventType.AFTEROPERATIONS, frameState, data)); - this.canvasContext_.putImageData(output, 0, 0); + var resolution = frameState.viewState.resolution / frameState.pixelRatio; + if (!this.isDirty_(frameState.extent, resolution)) { + this.canvasContext_.putImageData(output, 0, 0); + } callback(null); };