Rename ol.structs.RBush#getAllInExtent to getInExtent
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user