chore: update version

This commit is contained in:
thinkinggis 2020-09-10 23:42:06 +08:00
parent 460f09d55b
commit 4f73e3ff91
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
const version = '2.2.36';
const version = '2.2.37';
export { version };

View File

@ -11,7 +11,7 @@ import {
lazyInject,
TYPES,
} from '@antv/l7-core';
import { bBoxToBounds, padBounds, extent } from '@antv/l7-utils';
import { bBoxToBounds, extent, padBounds } from '@antv/l7-utils';
import {
BBox,
Feature,
@ -87,7 +87,7 @@ export default class Source extends EventEmitter {
}
public updateClusterData(zoom: number): void {
const { method = 'sum', field } = this.clusterOptions;
const newBounds = padBounds(bBoxToBounds(this.extent),2);
const newBounds = padBounds(bBoxToBounds(this.extent), 2);
let data = this.clusterIndex.getClusters(
newBounds[0].concat(newBounds[1]),
Math.floor(zoom),