mirror of https://gitee.com/antv-l7/antv-l7
chore: update version
This commit is contained in:
parent
460f09d55b
commit
4f73e3ff91
|
@ -1,2 +1,2 @@
|
||||||
const version = '2.2.36';
|
const version = '2.2.37';
|
||||||
export { version };
|
export { version };
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue