Skip to content

Commit

Permalink
chore: 优化类型
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jan 30, 2024
1 parent 361dcf3 commit b372510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MarkerCluster/MarkerCluster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ const InternalMarkerCluster = <D extends AnyObject = AnyObject>(
if (!properties?.cluster) return;

const children = supercluster.getLeaves(properties.cluster_id, Infinity);
const childrenBbox = bbox(featureCollection(children));
const childrenBbox = bbox(featureCollection(children)) as [number, number, number, number];

map.fitBounds(LngLatBounds.convert(childrenBbox as any), {
map.fitBounds(LngLatBounds.convert(childrenBbox), {
padding: zoomOnClickPadding,
});
};
Expand Down

0 comments on commit b372510

Please sign in to comment.