echarts 报错Uncaught DOMException: Failed to execute 'drawImage'

问题描述:
在使用echarts做地图功能的时候,很奇怪的就报了个错,提示下面图里的错误,其它的图表没问题,只有地图的这个报错
echarts 报错Uncaught DOMException: Failed to execute 'drawImage'_第1张图片

解决方案:给图表容器设置宽高(PS:因为我是用定位撑开的的)

你可能感兴趣的:(echarts 报错Uncaught DOMException: Failed to execute 'drawImage')