Rename ol.source.VectorSource2 to ol.source.Vector2
This commit is contained in:
@@ -8,7 +8,7 @@ goog.require('ol.geom2.PointCollection');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.layer.VectorLayer2');
|
||||
goog.require('ol.source.OSM');
|
||||
goog.require('ol.source.VectorSource2');
|
||||
goog.require('ol.source.Vector2');
|
||||
goog.require('ol.webgl.SUPPORTED');
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ if (!ol.webgl.SUPPORTED) {
|
||||
source: new ol.source.OSM()
|
||||
}),
|
||||
new ol.layer.VectorLayer2({
|
||||
source: new ol.source.VectorSource2({
|
||||
source: new ol.source.Vector2({
|
||||
lineStringCollections: [lineStringCollection],
|
||||
projection: 'EPSG:3857',
|
||||
pointCollections: [pointCollection]
|
||||
|
||||
@@ -564,7 +564,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} ol.source.VectorSource2Options
|
||||
* @typedef {Object} ol.source.Vector2Options
|
||||
* @property {Array.<ol.Attribution>|undefined} attributions Attributions.
|
||||
* @property {ol.Extent|undefined} extent Extent.
|
||||
* @property {Array.<ol.geom2.LineStringCollection>|undefined}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
goog.provide('ol.layer.VectorLayer2');
|
||||
|
||||
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() {
|
||||
return /** @type {ol.source.VectorSource2} */ (this.getSource());
|
||||
return /** @type {ol.source.Vector2} */ (this.getSource());
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
@exportSymbol ol.source.VectorSource2
|
||||
@exportSymbol ol.source.Vector2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
goog.provide('ol.source.VectorSource2');
|
||||
goog.provide('ol.source.Vector2');
|
||||
|
||||
goog.require('ol.geom2.LineStringCollection');
|
||||
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.
|
||||
* @constructor
|
||||
* @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, {
|
||||
attributions: options.attributions,
|
||||
@@ -35,13 +35,13 @@ ol.source.VectorSource2 = function(options) {
|
||||
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.
|
||||
*/
|
||||
ol.source.VectorSource2.prototype.getLineStringCollections = function() {
|
||||
ol.source.Vector2.prototype.getLineStringCollections = function() {
|
||||
return this.lineStringCollections_;
|
||||
};
|
||||
|
||||
@@ -49,6 +49,6 @@ ol.source.VectorSource2.prototype.getLineStringCollections = function() {
|
||||
/**
|
||||
* @return {Array.<ol.geom2.PointCollection>} Point collections.
|
||||
*/
|
||||
ol.source.VectorSource2.prototype.getPointCollections = function() {
|
||||
ol.source.Vector2.prototype.getPointCollections = function() {
|
||||
return this.pointCollections_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user