mapboxGL echartLayer
JavaScript
Switch branches/tags
Nothing to show
Clone or download
lizhengxue
lizhengxue fix(fix): fix
fix
Latest commit 6449587 Sep 1, 2017
Permalink
Failed to load latest commit information.
demo fix demo Dec 29, 2016
dist fix(fix): fix Sep 1, 2017
lib fix(fix): fix Sep 1, 2017
.DS_Store frist commit Dec 29, 2016
.gitignore fix demo https Dec 29, 2016
LICENSE Initial commit Dec 29, 2016
index.js frist commit Dec 29, 2016
package.json fix(fix): fix Sep 1, 2017
readme.md fix(fix): fix Sep 1, 2017
webpack.config.js frist commit Dec 29, 2016

readme.md

mapboxGL echartslayer

Add echarts charts to mapboxGL as a layer

In order to use this plugin, include the echartsjs andEchartsLayer.js on your page and use it as follow:

demo

全球航线

全国空气质量

模拟迁徙

微博签到

import

    <script type="text/javascript" src="./echarts-all-3.js"></script>
    <script type="text/javascript" src="../dist/EchartsLayer.js"></script>

with webpack

npm install echartslayer
require('echarts');
var EchartLayer=require('echartslayer');

var echartslayer = new EchartsLayer(map);
echartslayer.chart.setOption(option);
//移除 
echartslayer.remove();

Usage

set the charts attribute coordinateSystem:"GLMap"

option = { 
  GLMap: { //Must

  },
  series: [{
    coordinateSystem: 'GLMap',
  }]
}