'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _index = require('../index.js');

var _index2 = _interopRequireDefault(_index);

var _layertype = require('../layertype.js');

var _layertype2 = _interopRequireDefault(_layertype);

var _layer = require('../layer/layer.js');

var _layer2 = _interopRequireDefault(_layer);

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : { default: obj };
}

/**
 * @classdesc
 * Server-rendered images that are available for arbitrary extents and
 * resolutions.
 * Note that any property set in the options is set as a {@link ol.Object}
 * property on the layer object; for example, setting `title: 'My Title'` in the
 * options means that `title` is observable, and has get/set accessors.
 *
 * @constructor
 * @extends {ol.layer.Layer}
 * @fires ol.render.Event
 * @param {olx.layer.ImageOptions=} opt_options Layer options.
 * @api
 */
var _ol_layer_Image_ = function (opt_options) {
  var options = opt_options ? opt_options : {};
  _layer2.default.call(this, /** @type {olx.layer.LayerOptions} */options);

  /**
   * The layer type.
   * @protected
   * @type {ol.LayerType}
   */
  this.type = _layertype2.default.IMAGE;
};

_index2.default.inherits(_ol_layer_Image_, _layer2.default);

/**
 * Return the associated {@link ol.source.Image source} of the image layer.
 * @function
 * @return {ol.source.Image} Source.
 * @api
 */
_ol_layer_Image_.prototype.getSource;
exports.default = _ol_layer_Image_;
module.exports = exports['default'];