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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user