• Stars
    star
    219
  • Rank 181,133 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A plugin for leaflet to load echarts map and Make big data visualization easier.

leaflet-echarts

A plugin for leaflet to load echarts map and make BigData Visualization.

基于leaflet 扩展echarts,使ECharts的地图可以加到leaflet上

根据百度地图echarts的扩展改写,在事件联动这个地方以及echarts的容器与地图容器在拖动和缩放中的适应上耗费了很长时间,为了兼容echarts的map其他类型的数据又下了不少功夫。现在可以算是一个稍微完美的版本了。好的效果请在谷歌浏览器访问。

leaflet加载echarts3的版本地址

arcgis加载echarts2的版本地址

arcgis加载echarts3的版本地址

This is a beta version,so it would have some bugs,visit it by chrome will be better. When you want to drag the map,drag on zhe basemap without echarts data. It seems that i have solved this problem.

在线访问(Demo)

Online Demo(Not in china?Visit this!)

使用方法(Usage)

  1. Confirm you have import leaflet first, 引入leaflet的js和css库自然不用说

  2. Import eaflet-echarts.js ,可以通过npm安装,输入npm install leaflet-echarts 即可

  3. Import echarts.source.js under directory lib 引入lib目录下的echarts.source.js文件

  4. As you can use this plugin like this,按照下面的方法使用

    	var overlay = new L.echartsLayer(map, echarts);
    	var chartsContainer=overlay.getEchartsContainer();
    	var myChart=overlay.initECharts(chartsContainer);
    	var option={};//这里跟百度echarts的map的option一样,the option is same as echarts map
    	overlay.setOption(option);
    
  5. If you don't konw how to use this plugin,hava a look at /examples/index.html,如果你不会用,看看examples目录下的index.html

截图示例

参考

https://github.com/ecomfe/echarts

More Repositories

1

coordtransform

提供了百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
JavaScript
4,319
star
2

coordTransform_py

提供百度坐标系(bd-09)、火星坐标系(国测局坐标系、gcj02)、WGS84坐标系直接的坐标互转,也提供了解析高德地址的方法的python版本
Python
1,057
star
3

hospital-viz

根据网络来源的数据地理可视化,在线查看
500
star
4

leaflet-echarts3

A plugin for leaflet to load echarts3 map and Make big data visualization easier.
JavaScript
452
star
5

arcgis-echarts3

A plugin for ArcGIS JS API to load echarts3 map and Make big data visualization easier.
JavaScript
358
star
6

arcgis-echarts

A plugin for ArcGIS JS API to load echarts map and Make big data visualization easier.
JavaScript
170
star
7

coordtransform-cli

A CLI version for [coordtransform](https://github.com/wandergis/coordtransform) module that can transform geojson file.
JavaScript
70
star
8

avalon-webpack-spa

一个集成了avalon mmstate oniui jquery webpack gulp的工程化项目
JavaScript
59
star
9

ArcGIS-GaodeLayer

ESRI的ArcGIS JavaScript API加载高德在线地图的扩展
JavaScript
30
star
10

ArcGIS-PortalDemo

一个ArcGIS JS api开发的demo
HTML
7
star
11

leaflet-plot

A library for leaflet to polt on the map.
JavaScript
7
star
12

d3-svg-samples

精通d3.js交互式数据可视化高级编程学习记录
HTML
7
star
13

Javascript-design-pattern-study

作为学习Javascript设计模式的一个笔记吧
6
star
14

vue-spa-study

学习Vue vue-router webpack gulp的demo项目,集成了zepto和purecss
JavaScript
5
star
15

leaflet-canvas-test

A sample to test leaflet canvaslayer.
5
star
16

postgis-ppt

postgis学习备忘
4
star
17

angular-lazyload-with-webpack-and-uirouter

angular lazyload with webpack and ui-router
CSS
4
star
18

turf-clip

Clip one featurecollection by another.
JavaScript
3
star
19

vector-tiles

study how to make vector tiles
JavaScript
3
star
20

multipage-workflow-with-webpack

多页面下的webpack开发工作流
JavaScript
2
star
21

leaflet-roadbook

Lets geojsonLayer animate on the layer.
JavaScript
2
star
22

react-spa-study

A study Demo for React
JavaScript
2
star
23

DataGrip-GeoJSON-extractor

A extractor for DataGrip to export geojson file by sql query directly.
Groovy
2
star
24

node-canvas-sample

使用node-canvas渲染地图
JavaScript
2
star
25

three-sample

just for study webgl
HTML
1
star
26

fbx2gltf-plus

A fbx to gltf transform tool with transparent support.
1
star
27

studynotes

学习过程中一些记录
1
star