Rename ol.source.VectorSource2 to ol.source.Vector2

This commit is contained in:
Tom Payne
2013-09-09 15:18:31 +02:00
parent 23505799b6
commit d1659b8e69
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ goog.require('ol.geom2.PointCollection');
goog.require('ol.layer.Tile'); goog.require('ol.layer.Tile');
goog.require('ol.layer.VectorLayer2'); goog.require('ol.layer.VectorLayer2');
goog.require('ol.source.OSM'); goog.require('ol.source.OSM');
goog.require('ol.source.VectorSource2'); goog.require('ol.source.Vector2');
goog.require('ol.webgl.SUPPORTED'); goog.require('ol.webgl.SUPPORTED');
@@ -60,7 +60,7 @@ if (!ol.webgl.SUPPORTED) {
source: new ol.source.OSM() source: new ol.source.OSM()
}), }),
new ol.layer.VectorLayer2({ new ol.layer.VectorLayer2({
source: new ol.source.VectorSource2({ source: new ol.source.Vector2({
lineStringCollections: [lineStringCollection], lineStringCollections: [lineStringCollection],
projection: 'EPSG:3857', projection: 'EPSG:3857',
pointCollections: [pointCollection] pointCollections: [pointCollection]
+1 -1
View File
@@ -564,7 +564,7 @@
*/ */
/** /**
* @typedef {Object} ol.source.VectorSource2Options * @typedef {Object} ol.source.Vector2Options
* @property {Array.<ol.Attribution>|undefined} attributions Attributions. * @property {Array.<ol.Attribution>|undefined} attributions Attributions.
* @property {ol.Extent|undefined} extent Extent. * @property {ol.Extent|undefined} extent Extent.
* @property {Array.<ol.geom2.LineStringCollection>|undefined} * @property {Array.<ol.geom2.LineStringCollection>|undefined}
+3 -3
View File
@@ -1,7 +1,7 @@
goog.provide('ol.layer.VectorLayer2'); goog.provide('ol.layer.VectorLayer2');
goog.require('ol.layer.Layer'); goog.require('ol.layer.Layer');
goog.require('ol.source.VectorSource2'); goog.require('ol.source.Vector2');
@@ -18,8 +18,8 @@ goog.inherits(ol.layer.VectorLayer2, ol.layer.Layer);
/** /**
* @return {ol.source.VectorSource2} Source. * @return {ol.source.Vector2} Source.
*/ */
ol.layer.VectorLayer2.prototype.getVectorSource = function() { ol.layer.VectorLayer2.prototype.getVectorSource = function() {
return /** @type {ol.source.VectorSource2} */ (this.getSource()); return /** @type {ol.source.Vector2} */ (this.getSource());
}; };
+1 -1
View File
@@ -1 +1 @@
@exportSymbol ol.source.VectorSource2 @exportSymbol ol.source.Vector2
+6 -6
View File
@@ -1,4 +1,4 @@
goog.provide('ol.source.VectorSource2'); goog.provide('ol.source.Vector2');
goog.require('ol.geom2.LineStringCollection'); goog.require('ol.geom2.LineStringCollection');
goog.require('ol.geom2.PointCollection'); goog.require('ol.geom2.PointCollection');
@@ -10,9 +10,9 @@ goog.require('ol.source.Source');
* This is an internal class that will be removed from the API. * This is an internal class that will be removed from the API.
* @constructor * @constructor
* @extends {ol.source.Source} * @extends {ol.source.Source}
* @param {ol.source.VectorSource2Options} options Options. * @param {ol.source.Vector2Options} options Options.
*/ */
ol.source.VectorSource2 = function(options) { ol.source.Vector2 = function(options) {
goog.base(this, { goog.base(this, {
attributions: options.attributions, attributions: options.attributions,
@@ -35,13 +35,13 @@ ol.source.VectorSource2 = function(options) {
options.lineStringCollections : []; options.lineStringCollections : [];
}; };
goog.inherits(ol.source.VectorSource2, ol.source.Source); goog.inherits(ol.source.Vector2, ol.source.Source);
/** /**
* @return {Array.<ol.geom2.LineStringCollection>} Line string collections. * @return {Array.<ol.geom2.LineStringCollection>} Line string collections.
*/ */
ol.source.VectorSource2.prototype.getLineStringCollections = function() { ol.source.Vector2.prototype.getLineStringCollections = function() {
return this.lineStringCollections_; return this.lineStringCollections_;
}; };
@@ -49,6 +49,6 @@ ol.source.VectorSource2.prototype.getLineStringCollections = function() {
/** /**
* @return {Array.<ol.geom2.PointCollection>} Point collections. * @return {Array.<ol.geom2.PointCollection>} Point collections.
*/ */
ol.source.VectorSource2.prototype.getPointCollections = function() { ol.source.Vector2.prototype.getPointCollections = function() {
return this.pointCollections_; return this.pointCollections_;
}; };