Add ol.layer.ImageLayer
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
@exportClass ol.layer.ImageLayer ol.layer.LayerOptions
|
||||||
@@ -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());
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user