nanmucoffin commented on issue #6825: brush 支持 bmap吗
URL: 
https://github.com/apache/incubator-echarts/issues/6825#issuecomment-494221945
 
 
   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,
             })
           }
         }
       })

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to