mirror of https://gitee.com/antv-l7/antv-l7
fix: source 聚合方法接口定义问题
This commit is contained in:
parent
80a6830847
commit
0c4ecb80e1
|
@ -63,8 +63,8 @@ export interface ISource {
|
||||||
clusterOptions: Partial<IClusterOptions>;
|
clusterOptions: Partial<IClusterOptions>;
|
||||||
updateClusterData(zoom: number): void;
|
updateClusterData(zoom: number): void;
|
||||||
getFeatureById(id: number): unknown;
|
getFeatureById(id: number): unknown;
|
||||||
getClusters(zoom: number): unknown;
|
getClusters(zoom: number): any;
|
||||||
getClustersLeaves(id: string): unknown;
|
getClustersLeaves(id: number): any;
|
||||||
}
|
}
|
||||||
export interface IRasterCfg {
|
export interface IRasterCfg {
|
||||||
extent: [number, number, number, number];
|
extent: [number, number, number, number];
|
||||||
|
|
|
@ -84,10 +84,10 @@ export default class Source extends EventEmitter {
|
||||||
});
|
});
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
public getClusters(zoom: number) {
|
public getClusters(zoom: number): any {
|
||||||
return this.clusterIndex.getClusters(this.extent, zoom);
|
return this.clusterIndex.getClusters(this.extent, zoom);
|
||||||
}
|
}
|
||||||
public getClustersLeaves(id: number) {
|
public getClustersLeaves(id: number): any {
|
||||||
return this.clusterIndex.getLeaves(id, Infinity);
|
return this.clusterIndex.getLeaves(id, Infinity);
|
||||||
}
|
}
|
||||||
public updateClusterData(zoom: number): void {
|
public updateClusterData(zoom: number): void {
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default class Point3D extends React.Component {
|
||||||
type: 'quantile',
|
type: 'quantile',
|
||||||
})
|
})
|
||||||
.size('point_count', [5, 10, 15, 20, 25])
|
.size('point_count', [5, 10, 15, 20, 25])
|
||||||
// .size(10)
|
.active(true)
|
||||||
.color('red')
|
.color('red')
|
||||||
.style({
|
.style({
|
||||||
opacity: 0.3,
|
opacity: 0.3,
|
||||||
|
|
Loading…
Reference in New Issue