Permalink
Browse files

Vector source isn't a tile source

  • Loading branch information...
1 parent 0558cfa commit 0b05432faab2bca5804c504dde816c8a7898ba50 @tschaub tschaub committed Mar 4, 2013
Showing with 5 additions and 16 deletions.
  1. +5 −16 src/ol/source/vectorsource.js
@@ -10,9 +10,8 @@ goog.require('ol.filter.Geometry');
goog.require('ol.filter.Logical');
goog.require('ol.filter.LogicalOperator');
goog.require('ol.geom.GeometryType');
-goog.require('ol.source.TileSource');
+goog.require('ol.source.Source');
goog.require('ol.structs.RTree');
-goog.require('ol.tilegrid.TileGrid');
@@ -177,25 +176,23 @@ ol.source.FeatureCache.prototype.getFeaturesByIds_ = function(ids) {
/**
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
* extent: (ol.Extent|undefined),
- * projection: (ol.Projection|undefined),
- * tileGrid: (ol.tilegrid.TileGrid|undefined)}}
+ * projection: (ol.Projection|undefined)}}
*/
ol.source.VectorOptions;
/**
* @constructor
- * @extends {ol.source.TileSource}
+ * @extends {ol.source.Source}
* @param {ol.source.VectorOptions} options Source options.
*/
ol.source.Vector = function(options) {
goog.base(this, {
attributions: options.attributions,
extent: options.extent,
- projection: options.projection,
- tileGrid: options.tileGrid
+ projection: options.projection
});
/**
@@ -205,15 +202,7 @@ ol.source.Vector = function(options) {
this.featureCache_ = new ol.source.FeatureCache();
};
-goog.inherits(ol.source.Vector, ol.source.TileSource);
-
-
-/**
- * @param {ol.tilegrid.TileGrid} tileGrid tile grid.
- */
-ol.source.Vector.prototype.setTileGrid = function(tileGrid) {
- this.tileGrid = tileGrid;
-};
+goog.inherits(ol.source.Vector, ol.source.Source);
/**

0 comments on commit 0b05432

Please sign in to comment.