From 63b14f5f324d48955837ecdcbd739006ca8db8f0 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Thu, 3 Aug 2017 11:44:06 +0200 Subject: [PATCH] Make ol.layer.Group change handling consistent Changes to the layer were only propagated in some cases like addition/removal of a layer to the group. To make it consistent both with the rest of the group.js file and with the layer.js file, the changes are now always notified. --- src/ol/layer/group.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ol/layer/group.js b/src/ol/layer/group.js index f61707c22c..8706fc496d 100644 --- a/src/ol/layer/group.js +++ b/src/ol/layer/group.js @@ -80,9 +80,7 @@ ol.layer.Group.prototype.createRenderer = function(mapRenderer) {}; * @private */ ol.layer.Group.prototype.handleLayerChange_ = function() { - if (this.getVisible()) { - this.changed(); - } + this.changed(); };