echartslayer
echarts MapboxGL
Last updated 3 years ago by lzxue .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install echartslayer 
SYNC missed versions from official npm registry.

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',
  }]
}

Current Tags

  • 0.1.6                                ...           latest (3 years ago)

3 Versions

  • 0.1.6                                ...           3 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 6
This Month 57
Last Day 6
Last Week 12
Last Month 69
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |