Faster vector source clear
Three seconds speed up for clearing 100'000 features.
This commit is contained in:
@@ -228,7 +228,7 @@ ol.structs.RBush.prototype.isEmpty = function() {
|
||||
*/
|
||||
ol.structs.RBush.prototype.clear = function() {
|
||||
this.rbush_.clear();
|
||||
goog.object.clear(this.items_);
|
||||
this.items_ = {};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user