Rename getAllFeaturesAtCoordinate to getFeaturesAtCoordinate
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
@exportProperty ol.source.Vector.prototype.forEachFeature
|
@exportProperty ol.source.Vector.prototype.forEachFeature
|
||||||
@exportProperty ol.source.Vector.prototype.forEachFeatureInExtent
|
@exportProperty ol.source.Vector.prototype.forEachFeatureInExtent
|
||||||
@exportProperty ol.source.Vector.prototype.getFeatures
|
@exportProperty ol.source.Vector.prototype.getFeatures
|
||||||
@exportProperty ol.source.Vector.prototype.getAllFeaturesAtCoordinate
|
@exportProperty ol.source.Vector.prototype.getFeaturesAtCoordinate
|
||||||
@exportProperty ol.source.Vector.prototype.getClosestFeatureToCoordinate
|
@exportProperty ol.source.Vector.prototype.getClosestFeatureToCoordinate
|
||||||
@exportProperty ol.source.Vector.prototype.getExtent
|
@exportProperty ol.source.Vector.prototype.getExtent
|
||||||
@exportProperty ol.source.Vector.prototype.removeFeature
|
@exportProperty ol.source.Vector.prototype.removeFeature
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ ol.source.Vector.prototype.getFeatures = function() {
|
|||||||
* @return {Array.<ol.Feature>} Features.
|
* @return {Array.<ol.Feature>} Features.
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.source.Vector.prototype.getAllFeaturesAtCoordinate = function(coordinate) {
|
ol.source.Vector.prototype.getFeaturesAtCoordinate = function(coordinate) {
|
||||||
var features = [];
|
var features = [];
|
||||||
this.forEachFeatureAtCoordinate(coordinate, function(feature) {
|
this.forEachFeatureAtCoordinate(coordinate, function(feature) {
|
||||||
features.push(feature);
|
features.push(feature);
|
||||||
|
|||||||
Reference in New Issue
Block a user