Only replay replay group if it is not empty
This commit is contained in:
@@ -69,7 +69,7 @@ ol.renderer.canvas.VectorLayer.prototype.composeFrame =
|
||||
this.dispatchPreComposeEvent(context, frameState, transform);
|
||||
|
||||
var replayGroup = this.replayGroup_;
|
||||
if (!goog.isNull(replayGroup)) {
|
||||
if (!goog.isNull(replayGroup) && !replayGroup.isEmpty()) {
|
||||
var renderGeometryFunction = this.getRenderGeometryFunction_();
|
||||
goog.asserts.assert(goog.isFunction(renderGeometryFunction));
|
||||
context.globalAlpha = layerState.opacity;
|
||||
|
||||
Reference in New Issue
Block a user