1. EchartsLayer
Extends: Layer
1.1. 初始化 new EchartsLayer(map, options)
echart图层
Param | Type | Description |
---|---|---|
map | Viewer |
viewer对象; |
options | Object |
包含以下参数的Object对象: |
[options.name] | String |
图层名称; |
[options.geomap] | GeoMap | GeoMap对象; |
[options.show] | Boolean |
是否显示; |
[options.customGroupId] | String |
若使用自定义分组,该图层所在分组的名称; |
[options.echartsOption] | Object |
echart设置。 |
1.2. 属性
属性名 | Type | Default | Description |
---|---|---|---|
show | Boolean | 是否显示图层 |
1.3. 方法
1.3.1. echartsLayer.dispose()
EchartsLayer释放
1.3.2. echartsLayer.updateOverlay(options)
更新叠加层
Param | Type | Description |
---|---|---|
options | Object |
配置 |
1.3.3. echartsLayer.getMap()
获取地图
1.3.4. echartsLayer.getOverlay()
获取叠加层
1.3.5. echartsLayer.remove()
移除
1.3.6. echartsLayer.resize()
重置canvas大小