Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Dec 14, 2021
1 parent 4643eeb commit 7520135
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/src/cluster/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface ClusterParams {
position: LatLng;
}

interface MarkerItem {
interface ClusterPoint {
/**
* 坐标
*/
Expand All @@ -35,6 +35,9 @@ interface MarkerItem {
}

interface Props {
/**
* 聚合半径
*/
radius?: number;

/**
Expand All @@ -50,12 +53,12 @@ interface Props {
/**
* 坐标点列表
*/
points: MarkerItem[];
points: ClusterPoint[];

/**
* 渲染 Marker
*/
renderMarker: (item: MarkerItem) => React.ReactNode;
renderMarker: (item: ClusterPoint) => React.ReactNode;

/**
* 渲染聚合点
Expand Down

0 comments on commit 7520135

Please sign in to comment.