echarts.min.js:24 Uncaught TypeError: Cannot read property 'getWidth' of null
at getWidth (echarts.min.js:24)
at a.Q.getWidth (echarts.min.js:10)
at n.getWidth (echarts.min.js:1)
at Object.a (echarts.min.js:38)
at Object.func (echarts.min.js:1)
at echarts.min.js:1
at Array.forEach (<anonymous>)
at f (echarts.min.js:1)
at a.g (echarts.min.js:1)
at a.updateLayout (echarts.min.js:10)
用L.supermap.echartsLayer添加图层后再次移除,缩放地图报错,资源也dispose了
我叠加了多个echarts图层,移除其中一个报错,然后其他图层就消失了。