Incubator-echarts: brush 支持 bmap吗

Created on 13 Oct 2017  ·  7Comments  ·  Source: apache/incubator-echarts

One-line summary [问题简述]

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]


option = {

}

Other comments [其他信息]


enhancement

Most helpful comment

brush会跟着bmap的拖动平移事件导致选点不准确,从文档没找到支持的方式,正好也遇到同样问题,希望我们大神指教。。。

All 7 comments

brush会跟着bmap的拖动平移事件导致选点不准确,从文档没找到支持的方式,正好也遇到同样问题,希望我们大神指教。。。

geo支持是因为有geoIndex,感觉geo支持的话,bmap也应该支持呀。

geo的坐标系是经纬度,bmap也是,所以有些奇怪为什么只和bmap的roam冲突,geo正常

遇到同样的问题,希望官方能给出解决方案。

有人有解决方法或者替代方法不,分享一下。

这个问题无解么?

this.map.chart.on('brush', (p: any) => {
if (p.command === 'clear') {
this.map.chart.dispatchAction({
type: 'takeGlobalCursor',
key: 'brush',
brushOption: {
brushType: false,
brushMode: 'single'
}
})
this.brushComplete()
} else {
const mapChart = this.map.chart
const amapInstense = mapChart.getModel().getComponent('amap')
amapInstense.getAMap().setStatus({
dragEnable: false,
rotateEnable: false,
})
if (!p.areas.length) {
amapInstense.getAMap().setStatus({
dragEnable: true,
rotateEnable: true,
})
}
}
})

Was this page helpful?
0 / 5 - 0 ratings