Manual class transform

This commit is contained in:
Tim Schaub
2018-07-16 17:09:50 -06:00
parent 7b4a73f3b9
commit f78d0d4cfa
96 changed files with 8112 additions and 7964 deletions

View File

@@ -40,18 +40,22 @@ import Layer from '../layer/Layer.js';
* @param {module:ol/layer/Image~Options=} opt_options Layer options.
* @api
*/
const ImageLayer = function(opt_options) {
const options = opt_options ? opt_options : {};
Layer.call(this, /** @type {module:ol/layer/Layer~Options} */ (options));
class ImageLayer {
/**
* The layer type.
* @protected
* @type {module:ol/LayerType}
*/
this.type = LayerType.IMAGE;
constructor(opt_options) {
const options = opt_options ? opt_options : {};
Layer.call(this, /** @type {module:ol/layer/Layer~Options} */ (options));
};
/**
* The layer type.
* @protected
* @type {module:ol/LayerType}
*/
this.type = LayerType.IMAGE;
}
}
inherits(ImageLayer, Layer);