huiyan-fe / react-bmapgl

基于百度地图JavaScript GL版API封装的React组件库
http://huiyan.baidu.com/github/react-bmapgl/
MIT License
114 stars 20 forks source link

MapvglView销毁报错 #65

Closed WangAmin closed 1 year ago

WangAmin commented 1 year ago

最近使用MapvglView展示动态效果时,切换页面在销毁MapvglView时报错,MapvglView是放在Map下的

问题1 @问题3 代码 @Junior2Ran @cl1107

wqzwh commented 1 year ago
image

this.map.getContainer() 执行是null,所以就报了Cannot read properties of null (reading 'removeChild')

Junior2Ran commented 1 year ago

最新版本已经修复该问题