diff --git a/src/ol/map.js b/src/ol/map.js index 8c222f40df..d8a9952ad4 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -399,6 +399,10 @@ ol.Map.prototype.getInteractions = function() { ol.Map.prototype.getLayers = function() { return /** @type {ol.Collection} */ (this.get(ol.MapProperty.LAYERS)); }; +goog.exportProperty( + ol.Map.prototype, + 'getLayers', + ol.Map.prototype.getLayers); /**