Skip to content

Commit

Permalink
Add ol.source.Vector#forEachFeatureInExtentAtResolution
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Apr 3, 2014
1 parent fe216e3 commit 3a8504b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ol/source/vectorsource.js
Expand Up @@ -208,6 +208,21 @@ ol.source.Vector.prototype.forEachFeatureInExtent =
};


/**
* @param {ol.Extent} extent Extent.
* @param {number} resolution Resolution.
* @param {function(this: T, ol.Feature): S} f Callback.
* @param {T=} opt_this The object to use as `this` in `f`.
* @return {S|undefined}
* @template T,S
* @todo stability experimental
*/
ol.source.Vector.prototype.forEachFeatureInExtentAtResolution =
function(extent, resolution, f, opt_this) {
return this.forEachFeatureInExtent(extent, f, opt_this);
};


/**
* @return {Array.<ol.Feature>} Features.
* @todo stability experimental
Expand Down

0 comments on commit 3a8504b

Please sign in to comment.