diff --git a/src/ol/layer/vectorlayer2.exports b/src/ol/layer/vectorlayer2.exports new file mode 100644 index 0000000000..84c34826f8 --- /dev/null +++ b/src/ol/layer/vectorlayer2.exports @@ -0,0 +1 @@ +@exportSymbol ol.layer.VectorLayer2 diff --git a/src/ol/layer/vectorlayer2.js b/src/ol/layer/vectorlayer2.js new file mode 100644 index 0000000000..8ca94375b6 --- /dev/null +++ b/src/ol/layer/vectorlayer2.js @@ -0,0 +1,24 @@ +goog.provide('ol.layer.VectorLayer2'); + +goog.require('ol.layer.Layer'); +goog.require('ol.source.VectorSource2'); + + + +/** + * @constructor + * @extends {ol.layer.Layer} + * @param {ol.layer.LayerOptions} options Options. + */ +ol.layer.VectorLayer2 = function(options) { + goog.base(this, options); +}; +goog.inherits(ol.layer.VectorLayer2, ol.layer.Layer); + + +/** + * @return {ol.source.VectorSource2} Source. + */ +ol.layer.VectorLayer2.prototype.getVectorSource = function() { + return /** @type {ol.source.VectorSource2} */ (this.getSource()); +};