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 }; export { version };

View File

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