We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在WebGL模式下会报错 复现方式:用这个demo并开启webgl模式
const { drawingManager } = useDrawingManager({ map, isOpen: true, enableDrawingTool: true, drawingToolOptions: { anchor: BMAP_ANCHOR_TOP_RIGHT, // 位置, 这个用WebGL开启会报 Cannot read properties of undefined (reading 'offset')错误,不传这个参数才能正常渲染,但是不能修改控件位置(只能用CSS修改) offset: new BMap.Size(5, 5), drawingModes: ['circle', 'polygon'], }, circleOptions: styleOptions, polylineOptions: styleOptions, polygonOptions: styleOptions, rectangleOptions: styleOptions })
The text was updated successfully, but these errors were encountered:
react-baidu-map/packages/api-loader/src/index.tsx
Lines 41 to 44 in 69b5876
@sknightq 需要设置一下但是也不一定能解决问题,如果没有解决可以使用官方 React GL 组件 https://lbsyun.baidu.com/solutions/reactBmapDoc
https://uiwjs.github.io/react-baidu-map/#/api-loader?_id=props
Sorry, something went wrong.
@jaywcjlove 感谢回复,官方组件写得太烂了,不管是类型声明还是加载方式。目前解决方法就是不用webgl模式
No branches or pull requests
在WebGL模式下会报错
复现方式:用这个demo并开启webgl模式
The text was updated successfully, but these errors were encountered: