Fix type cast in ol.layer.Base constructor

ol.layer.Base takes a olx.layer.BaseOptions not olx.layer.LayerOptions
This commit is contained in:
Frederic Junod
2016-02-10 10:00:25 +01:00
parent ff07f3a385
commit df977d50b6

View File

@@ -37,7 +37,7 @@ ol.layer.Layer = function(options) {
var baseOptions = ol.object.assign({}, options);
delete baseOptions.source;
goog.base(this, /** @type {olx.layer.LayerOptions} */ (baseOptions));
goog.base(this, /** @type {olx.layer.BaseOptions} */ (baseOptions));
/**
* @private