ol.Map now have a LAYERGROUP property
The LAYERS property is gone.
This commit is contained in:
@@ -167,6 +167,18 @@ goog.exportProperty(
|
||||
ol.layer.LayerGroup.prototype.setLayers);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.layer.LayerGroup.prototype.getLayersArray = function(opt_array) {
|
||||
var array = (goog.isDef(opt_array)) ? opt_array : [];
|
||||
this.getLayers().forEach(function(layer) {
|
||||
layer.getLayersArray(array);
|
||||
});
|
||||
return array;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user