xieziyu/ngx-echarts

angular 13 echarts effectScatter-bmap bmap Don't show

18336380660 opened this issue · 2 comments

angular version 13
Echarts version 5.3.1 was introduced
Add it to angular.json
"node_modules/echarts/dist/echarts.min.js",
"Node_modules/echarts/dist/extension/bmap js." "
Added to main.ts
import * as echarts from 'echarts/core';
import 'echarts/dist/extension/bmap.min.js';
import _m from 'echarts/extension-src/bmap/BMapView';
import _v from 'echarts/extension-src/bmap/BMapModel';
import { version } from 'echarts/extension-src/bmap/bmap';
Added to module
NgxEchartsModule. ForRoot ({
echarts
}),
Added to index.ts

<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=myak"></script>

The map is still not displayed。。。。
image
https://echarts.apache.org/examples/zh/editor.html?c=effectScatter-bmap

image
地图没有渲染出来,只有标题,控制台也没报错

同样的问题 , 请问解决了吗?