#### # new EchartsLayer()

cesium的echars 4.0的实现。请详细参考echarts源码,CesiumZondy.Overlayer.EchartsLayer

作者:
  - 基础平台/创新中心 潘卓然
See:
  - http://echarts.baidu.com/api.html#echarts

查看源代码 cesium/view/utils/echarts/EchartsLayerPlugin.js, line 5

##### 示例

    这里唯一要注意的是我们中地数码的ceisum的右键事件不是放大缩小而是旋转视角
    option = {
            title: {
                text: '全国主要城市空气质量 - 百度地图提供数据',
                textStyle: {
                    color: '#eee'
                },
                subtext: 'data from PM25.in',
                sublink: 'http://www.pm25.in',
                left: 'center'
            },
            legend: {
                orient: 'vertical',
                y: 'top',
                x: 'left',
                data: ['pm2.5'],
                textStyle: {
                    color: '#fff'
                }
            },
            tooltip: {
                trigger: 'item'
            },
            cesium: {
                roam: true
            },
            series: [{
                    name: 'pm2.5',
                    type: 'scatter',
                    coordinateSystem: 'cesium',
                    data: convertData(data),
                    symbolSize: function (val) {
                        return val[2] / 10;
                    },
                    showEffectOn: 'render',
                    rippleEffect: {
                        brushType: 'stroke'
                    },
                    hoverAnimation: true,
                    label: {
                        normal: {
                            formatter: '{b}',
                            position: 'right',
                            show: false
                        },
                        emphasis: {
                            show: true
                        }
                    },
                    itemStyle: {
                        normal: {
                            color: '#ddb926'
                        }
                    },
                    zlevel: 1
                },
                {
                    name: 'Top 5',
                    type: 'effectScatter',
                    coordinateSystem: 'cesium',
                    data: convertData(data.sort(function (a, b) {
                        return b.value - a.value;
                    }).slice(0, 6)),
                    symbolSize: function (val) {
                        return val[2] / 10;
                    },
                    showEffectOn: 'render',
                    rippleEffect: {
                        brushType: 'stroke'
                    },
                    hoverAnimation: true,
                    label: {
                        normal: {
                            formatter: '{b}',
                            position: 'right',
                            show: true
                        }
                    },
                    itemStyle: {
                        normal: {
                            color: '#f4e925',
                            shadowBlur: 10,
                            shadowColor: '#333'
                        }
                    },
                    zlevel: 1
                }
            ]
        }
     layer = new CesiumZondy.Overlayer.EchartsLayer(map, option).addTo(map);

### 方法

#### # resize()

重置图层大小

查看源代码 cesium/view/utils/echarts/EchartsLayerPlugin.js, line 478

#### # addTo(viewer)

将图层添加到三维球上

#### 参数:

名称 | 类型 | 描述
--- | --- | ---
`viewer` | Cesium.Viewer |

查看源代码 cesium/view/utils/echarts/EchartsLayerPlugin.js, line 287

#### # hide()

隐藏图层

查看源代码 cesium/view/utils/echarts/EchartsLayerPlugin.js, line 466

#### # remove()

删除图层

查看源代码 cesium/view/utils/echarts/EchartsLayerPlugin.js, line 494

#### # show()

显示图层

查看源代码 cesium/view/utils/echarts/EchartsLayerPlugin.js, line 458