Faster vector source clear

Three seconds speed up for clearing 100'000 features.
This commit is contained in:
Guillaume Beraudo
2014-12-03 14:15:46 +01:00
parent e4063102b7
commit 3e2cc3c246

View File

@@ -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_ = {};
};