Upgrade to rbush@3

This commit is contained in:
Tim Schaub
2019-05-14 18:43:08 -06:00
parent 72551ab506
commit 09fdd30876
3 changed files with 5 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
* @module ol/structs/RBush
*/
import {getUid} from '../util.js';
import rbush from 'rbush';
import RBush_ from 'rbush';
import {createOrUpdate, equals} from '../extent.js';
import {isEmpty} from '../obj.js';
@@ -31,7 +31,7 @@ class RBush {
/**
* @private
*/
this.rbush_ = rbush(opt_maxEntries, undefined);
this.rbush_ = new RBush_(opt_maxEntries);
/**
* A mapping between the objects added to this rbush wrapper