diff --git a/src/components/AMapEllipse/AMapEllipse.tsx b/src/components/AMapEllipse/AMapEllipse.tsx index aaf6a96..de4a9ac 100644 --- a/src/components/AMapEllipse/AMapEllipse.tsx +++ b/src/components/AMapEllipse/AMapEllipse.tsx @@ -58,7 +58,7 @@ const AMapEllipse: FC = ({ onTouchend, }) => { const initInstance = useCallback((AMap) => new AMap!.Ellipse(), []); - const curInstance = useAMapPluginInstance('MapType', initInstance); + const curInstance = useAMapPluginInstance('Ellipse', initInstance); useSetter>(curInstance, 'setCenter', center!); useSetter>(curInstance, 'setRadius', radius!);