Merge pull request #8368 from ahocevar/imagemode-render-listeners

Make render listeners work with image render mode
This commit is contained in:
Andreas Hocevar
2018-07-14 11:52:40 +02:00
committed by GitHub
3 changed files with 27 additions and 4 deletions
+3 -3
View File
@@ -210,10 +210,10 @@ CanvasVectorLayerRenderer.prototype.compose = function(context, frameState, laye
rotateAtOffset(replayContext, rotation,
width / 2, height / 2);
if (hasRenderListeners) {
this.dispatchRenderEvent(replayContext, frameState, transform);
}
if (replayContext != context) {
if (hasRenderListeners) {
this.dispatchRenderEvent(replayContext, frameState, transform);
}
if (transparentLayer) {
const mainContextAlpha = context.globalAlpha;
context.globalAlpha = layerState.opacity;