- WebGIS之ECharts大数据图形可视化
- 郭明强等编著
- 9字
- 2025-02-18 01:42:31
1.6 OpenLayers与ECharts的结合开发
1.6.1 ECharts、jQuery及OpenLayers开发库的下载
打开ECharts官网,找到并单击“下载”,选择4.6.0版本,单击Source (Signature SHA512),如图1-10所示,即可下载ECharts安装包,解压缩后,将其中的ECharts.min.js文件复制到1.5.2节创建的ECharts文件夹中。

图1-10 下载ECharts安装包
打开jQuery官网,在右侧找到并单击“Download jQuery”按钮,之后找到jQuery下载地址,右键单击“Download the compressed, production jQuery 3.4.1”,如图1-11所示,可将jQuery安装包保存到jQuery文件夹中。

图1-11 jQuery下载
打开OpenLayers官网,向下滑动,找到并单击“Get the Code”按钮,如图1-12所示,选择并下载v6.2.1-dist.zip,如图1-13所示(注:不同时期网页内容有可能不同),即可下载OpenLayers的安装包,解压缩后,将其中的ol.css文件和ol.js文件复制到OpenLayers文件夹中。

图1-12 单击“Get the Code”按钮

图1-13 选择并下载v6.2.1-dist.zip安装包