Add ol.layer.ImageLayer

This commit is contained in:
Tom Payne
2013-01-21 17:44:21 +01:00
committed by Éric Lemoine
parent cf206a103d
commit 27125640ef
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1 @@
@exportClass ol.layer.ImageLayer ol.layer.LayerOptions

View File

@@ -0,0 +1,24 @@
goog.provide('ol.layer.ImageLayer');
goog.require('ol.layer.Layer');
goog.require('ol.source.ImageSource');
/**
* @constructor
* @extends {ol.layer.Layer}
* @param {ol.layer.LayerOptions} layerOptions Layer options.
*/
ol.layer.ImageLayer = function(layerOptions) {
goog.base(this, layerOptions);
};
goog.inherits(ol.layer.ImageLayer, ol.layer.Layer);
/**
* @return {ol.source.ImageSource} Single image source.
*/
ol.layer.ImageLayer.prototype.getImageSource = function() {
return /** @type {ol.source.ImageSource} */ (this.getSource());
};