Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 2x 2x 2x | /// <reference types="@uiw/react-baidu-map-types" />
import React, { useImperativeHandle } from 'react';
import { MapChildProps } from '@uiw/react-baidu-map-map';
import { useDrawingManager } from './useDrawingManager';
export * from './useDrawingManager';
export interface DrawingManagerProps
extends BMapLib.DrawingManagerOptions,
BMapLib.DrawingManagerEvents,
MapChildProps {}
export default React.forwardRef<DrawingManagerProps & { drawingManager?: BMapLib.DrawingManager }, DrawingManagerProps>(
(props, ref) => {
const { drawingManager } = useDrawingManager(props);
useImperativeHandle(ref, () => ({ ...props, drawingManager, BMapLib: window.BMapLib }));
return null;
},
);
|