Rename ol.structs.RBush#getAllInExtent to getInExtent

This commit is contained in:
Tom Payne
2014-03-06 14:30:56 +01:00
parent 6fb98851d9
commit e5ee44f8ad
4 changed files with 21 additions and 21 deletions

View File

@@ -500,7 +500,7 @@ ol.interaction.Modify.prototype.handleMouseAtPixel_ = function(pixel, map) {
this.modifiable_ = false;
var rBush = this.rBush_;
var nodes = rBush.getAllInExtent(box);
var nodes = rBush.getInExtent(box);
if (nodes.length > 0) {
nodes.sort(sortByDistance);
var node = nodes[0];

View File

@@ -223,7 +223,7 @@ ol.source.Vector.prototype.getFeaturesAtCoordinate = function(coordinate) {
* @todo stability experimental
*/
ol.source.Vector.prototype.getFeaturesInExtent = function(extent) {
return this.rBush_.getAllInExtent(extent);
return this.rBush_.getInExtent(extent);
};

View File

@@ -546,7 +546,7 @@ ol.structs.RBush.prototype.getAll = function() {
* @param {ol.Extent} extent Extent.
* @return {Array.<T>} All in extent.
*/
ol.structs.RBush.prototype.getAllInExtent = function(extent) {
ol.structs.RBush.prototype.getInExtent = function(extent) {
var values = [];
this.forEachInExtent(extent,
/**