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.
This commit is contained in:
Guillaume Beraudo
2017-08-03 11:44:06 +02:00
parent ee7795e31d
commit 63b14f5f32

View File

@@ -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();
};