uiwjs / react-baidu-map

基于 React 封装的百度地图组件,支持 React Hook,帮助你轻松的接入地图到 React 项目中。
https://uiwjs.github.io/react-baidu-map
MIT License
222 stars 22 forks source link

AMap is not defined #289

Closed limeiwang closed 9 months ago

limeiwang commented 1 year ago

<Circle radius={radius} strokeColor="#fff" strokeWeight={2} center={new AMap.LngLat(position.lon, position.lat)} />

当我在umijs项目中使用 new AMap类的时候报错

jaywcjlove commented 1 year ago

@limeiwang 没有 AMap 这个对象,要么跳台了,使用了我们的高德组件 https://github.com/uiwjs/react-amap/issues/45#issuecomment-759174172

在就是首页的一处文档错误,已修改