react-bmapgl icon indicating copy to clipboard operation
react-bmapgl copied to clipboard

基于百度地图JavaScript GL版API封装的React组件库

Results 52 react-bmapgl issues
Sort by recently updated
recently updated
newest added

CustomOverlay没办法直接从react-bmap中导出 import CustomOverlay from 'react-bmap/lib/overlay/CustomOverlay'; 这样使用CustomOverlay 又报错 里面的options属性都不知道写什么 ![image](https://user-images.githubusercontent.com/41141486/186106126-23c0c541-99db-49df-96a4-02616008936d.png) 新文档里面已经找不到CustomOverlay组件的文档说明,是直接舍去这个组件了么???急

Currently the `types` field targets to `types/bmapgl/index.d.ts` where defines GL JSAPI types in `BMapGL` namespace. There is a problem when we import this package: ![image](https://user-images.githubusercontent.com/55199350/182667062-2814ea90-d12a-4468-ac12-1408eeedf653.png) Because of the `types` field,...

![image](https://user-images.githubusercontent.com/79784694/178509974-6031d2a1-7a5e-4014-aa51-90a46ff64dd9.png)

使用鼠标绘制工具绘制曲线时,鼠标右击标记点时不能撤销标记点。在JS版本上使用该功能正常。

有什么方法可以解决大量CustomOverlay组件节点更新时的卡顿问题吗?

[1] ----------------服务端报错------------------- ReferenceError: window is not defined 请修复window 将代码放在useEffect中使用

https://api.map.baidu.com/getscript getScript内部有段兼容代码有bug ![image](https://user-images.githubusercontent.com/29906873/167753460-1c7a18fb-c4f5-4851-9bce-a8c341005b40.png) 此处的兼容代码没有考虑到element可能是null的情况 ![image](https://user-images.githubusercontent.com/29906873/167753518-5be361c6-ee06-453b-afe7-970359d76c21.png) 但实际上element可以是null

map.enableRotateGestures()此方法报错; map.disableRotate()此方法无效

貌似是在请求 `//api.map.baidu.com/apixxxx` 之后请求`//api.map.baidu.com/getscript` 返回的脚本里使用了write 我是异步加载的最后报了下面的错误 ``` Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened....