Set format parameter to rbush function

To remove the following closure compiler warning:
```
Function module$node_modules$rbush$index.default: called with 1 argument(s). Function requires at least 2 argument(s) and at most 2.
```
This commit is contained in:
Frederic Junod
2018-05-09 16:10:39 +02:00
parent cdb3e1c529
commit 0d99fc1f98
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ const CanvasVectorLayerRenderer = function(vectorLayer) {
* Declutter tree. * Declutter tree.
* @private * @private
*/ */
this.declutterTree_ = vectorLayer.getDeclutter() ? rbush(9) : null; this.declutterTree_ = vectorLayer.getDeclutter() ? rbush(9, undefined) : null;
/** /**
* @private * @private

View File

@@ -66,7 +66,7 @@ const CanvasVectorTileLayerRenderer = function(layer) {
* Declutter tree. * Declutter tree.
* @private * @private
*/ */
this.declutterTree_ = layer.getDeclutter() ? rbush(9) : null; this.declutterTree_ = layer.getDeclutter() ? rbush(9, undefined) : null;
/** /**
* @private * @private

View File

@@ -29,7 +29,7 @@ const RBush = function(opt_maxEntries) {
/** /**
* @private * @private
*/ */
this.rbush_ = rbush(opt_maxEntries); this.rbush_ = rbush(opt_maxEntries, undefined);
/** /**
* A mapping between the objects added to this rbush wrapper * A mapping between the objects added to this rbush wrapper