Skip to content

Commit

Permalink
fix(drawing-manager): fix the issue that BMapLib does not exist. (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 20, 2023
1 parent 8b3602a commit 2528c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/drawing-manager/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface DrawingManagerProps extends BMap.DrawingManagerOptions, MapChil
export default React.forwardRef<DrawingManagerProps & { drawingManager?: BMapLib.DrawingManager }, DrawingManagerProps>(
(props, ref) => {
const { drawingManager } = useDrawingManager(props);
useImperativeHandle(ref, () => ({ ...props, drawingManager, BMapLib }));
useImperativeHandle(ref, () => ({ ...props, drawingManager, BMapLib: window.BMapLib }));
return null;
},
);

0 comments on commit 2528c9c

Please sign in to comment.