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:
@@ -37,7 +37,7 @@ ol.layer.Layer = function(options) {
|
|||||||
var baseOptions = ol.object.assign({}, options);
|
var baseOptions = ol.object.assign({}, options);
|
||||||
delete baseOptions.source;
|
delete baseOptions.source;
|
||||||
|
|
||||||
goog.base(this, /** @type {olx.layer.LayerOptions} */ (baseOptions));
|
goog.base(this, /** @type {olx.layer.BaseOptions} */ (baseOptions));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user