Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问怎么注册中国地图 #6

Closed
hank2718 opened this issue Mar 13, 2017 · 1 comment
Closed

请问怎么注册中国地图 #6

hank2718 opened this issue Mar 13, 2017 · 1 comment

Comments

@hank2718
Copy link

No description provided.

@xlsdg
Copy link
Owner

xlsdg commented Mar 13, 2017

1.按需引入:
import IEcharts from 'vue-echarts-v3/src/lite.vue';
import 'echarts/lib/chart/map';
import 'echarts/lib/chart/effectScatter';
import 'echarts/lib/component/geo';

2.下载地图数据:http://echarts.baidu.com/download-map.html

3.注册地图
调用 IEcharts.registerMap 方法

4.参考官方示例配置参数:http://echarts.baidu.com/demo.html#geo-lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants