sailing_echartslayer
v1.0.7
Published
echarts MapboxGL
Downloads
21
Readme
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 sailing_echartslayer
import EchartsLayer from 'sailing_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',
}]
}