Add ol.source.Vector#isEmpty
This commit is contained in:
@@ -166,6 +166,14 @@ ol.source.Vector.prototype.handleFeatureChange_ = function(event) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {boolean} Is empty.
|
||||
*/
|
||||
ol.source.Vector.prototype.isEmpty = function() {
|
||||
return this.rBush_.isEmpty();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user