尝试使用 react-leaflet 3.0.0 版实现 react-leafet-draw。它抛出一个错误/node_modules/react-leaflet-draw/dist/esm/EditControl.js 尝试导入错误:'MapControl' 不是从'react-leaflet' 导出的。
import "./styles/leaflet.css";
import "leaflet/dist/leaflet.css";
import "leaflet-draw/dist/leaflet.draw.css";
import "leaflet-draw";
import L from "leaflet";
import "leaflet-splitmap";
import {MapConatiner, TileLayer} from 'react-leaflet';
import {EditControl} from 'react-leaflet-draw';
有没有办法用 react-leaflet V3.0.0 实现传单绘制功能?