option = {
}
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,
})
}
}
})
Most helpful comment
brush会跟着bmap的拖动平移事件导致选点不准确,从文档没找到支持的方式,正好也遇到同样问题,希望我们大神指教。。。