uiwjs / react-amap

基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。
https://uiwjs.github.io/react-amap
MIT License
418 stars 69 forks source link

MouseTool和PolyEditor无法在地图上绘制,在 codesandbox打开列示代码也运行不了,有报错 #318

Closed JOJO-CPU closed 1 year ago

jaywcjlove commented 1 year ago

https://codesandbox.io/embed/polyeditor-https-github-com-uiwjs-react-amap-issues-318-765tfp?fontsize=14&hidenavigation=1&theme=dark

@JOJO-CPU PolyEditor 测试是没有问题的。

image

jaywcjlove commented 1 year ago

image

@JOJO-CPU 测试 MouseTool 组件也是没有任何问题的 https://codesandbox.io/embed/https-github-com-uiwjs-react-amap-issues-318-nnj2kd?fontsize=14&hidenavigation=1&theme=dark

JOJO-CPU commented 1 year ago

我的react版本是17的,是不是react版本影响的

jaywcjlove commented 1 year ago

@JOJO-CPU React 17 的示例也是正常的。 https://codesandbox.io/embed/https-github-com-uiwjs-react-amap-issues-318-react-17-5dnxj5?fontsize=14&hidenavigation=1&theme=dark

image

JOJO-CPU commented 1 year ago

好的,我把本地的包删了,重新下载就可以了