z384647062 edited a comment on issue #12005: URL: https://github.com/apache/echarts/issues/12005#issuecomment-829106080
`echarts.min.js` 需要放在 `bmap.min.js` 之前引入,不然会报 echarts undefined --- 另外,如果项目使用的打包环境,不要使用CDN方式引入 `echarts.min.js` 和 `bmap.min.js`,只需要引入一个 `http://api.map.baidu.com/api?v=2.0&ak=***` 在代码中: ```typescript import * as echarts from 'echarts/core'; import 'echarts/dist/extension/bmap.min.js'; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
