diff --git a/src/ol/Collection.js b/src/ol/Collection.js index d784c12e6f..a0a1d9ae95 100644 --- a/src/ol/Collection.js +++ b/src/ol/Collection.js @@ -8,7 +8,6 @@ import _ol_Object_ from './Object.js'; import Event from './events/Event.js'; - /** * @enum {string} * @private diff --git a/src/ol/layer/Group.js b/src/ol/layer/Group.js index a907766427..112bbed2ce 100644 --- a/src/ol/layer/Group.js +++ b/src/ol/layer/Group.js @@ -14,6 +14,16 @@ import _ol_layer_Base_ from '../layer/Base.js'; import _ol_obj_ from '../obj.js'; import _ol_source_State_ from '../source/State.js'; + +/** + * @enum {string} + * @private + */ +var Property = { + LAYERS: 'layers' +}; + + /** * @classdesc * A {@link ol.Collection} of layers that are handled together. @@ -49,7 +59,7 @@ var _ol_layer_Group_ = function(opt_options) { this.listenerKeys_ = {}; _ol_events_.listen(this, - _ol_Object_.getChangeEventType(_ol_layer_Group_.Property_.LAYERS), + _ol_Object_.getChangeEventType(Property.LAYERS), this.handleLayersChanged_, this); if (layers) { @@ -154,10 +164,7 @@ _ol_layer_Group_.prototype.handleLayersRemove_ = function(collectionEvent) { * @api */ _ol_layer_Group_.prototype.getLayers = function() { - return ( - /** @type {!ol.Collection.