Faster vector source clear
Three seconds speed up for clearing 100'000 features.
This commit is contained in:
1 parent
e4063102b7
commit
3e2cc3c246
1 file changed
+1
-1
@@ -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