Vector source isn't a tile source
This commit is contained in:
@@ -10,9 +10,8 @@ goog.require('ol.filter.Geometry');
|
|||||||
goog.require('ol.filter.Logical');
|
goog.require('ol.filter.Logical');
|
||||||
goog.require('ol.filter.LogicalOperator');
|
goog.require('ol.filter.LogicalOperator');
|
||||||
goog.require('ol.geom.GeometryType');
|
goog.require('ol.geom.GeometryType');
|
||||||
goog.require('ol.source.TileSource');
|
goog.require('ol.source.Source');
|
||||||
goog.require('ol.structs.RTree');
|
goog.require('ol.structs.RTree');
|
||||||
goog.require('ol.tilegrid.TileGrid');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -177,8 +176,7 @@ ol.source.FeatureCache.prototype.getFeaturesByIds_ = function(ids) {
|
|||||||
/**
|
/**
|
||||||
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
||||||
* extent: (ol.Extent|undefined),
|
* extent: (ol.Extent|undefined),
|
||||||
* projection: (ol.Projection|undefined),
|
* projection: (ol.Projection|undefined)}}
|
||||||
* tileGrid: (ol.tilegrid.TileGrid|undefined)}}
|
|
||||||
*/
|
*/
|
||||||
ol.source.VectorOptions;
|
ol.source.VectorOptions;
|
||||||
|
|
||||||
@@ -186,7 +184,7 @@ ol.source.VectorOptions;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.source.TileSource}
|
* @extends {ol.source.Source}
|
||||||
* @param {ol.source.VectorOptions} options Source options.
|
* @param {ol.source.VectorOptions} options Source options.
|
||||||
*/
|
*/
|
||||||
ol.source.Vector = function(options) {
|
ol.source.Vector = function(options) {
|
||||||
@@ -194,8 +192,7 @@ ol.source.Vector = function(options) {
|
|||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
attributions: options.attributions,
|
attributions: options.attributions,
|
||||||
extent: options.extent,
|
extent: options.extent,
|
||||||
projection: options.projection,
|
projection: options.projection
|
||||||
tileGrid: options.tileGrid
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -205,15 +202,7 @@ ol.source.Vector = function(options) {
|
|||||||
this.featureCache_ = new ol.source.FeatureCache();
|
this.featureCache_ = new ol.source.FeatureCache();
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.source.Vector, ol.source.TileSource);
|
goog.inherits(ol.source.Vector, ol.source.Source);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {ol.tilegrid.TileGrid} tileGrid tile grid.
|
|
||||||
*/
|
|
||||||
ol.source.Vector.prototype.setTileGrid = function(tileGrid) {
|
|
||||||
this.tileGrid = tileGrid;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user