You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/10/30 07:38:27 UTC

[GitHub] [incubator-echarts] feishi20 commented on issue #11361: datazoom event not detected from roam mousewheel or toolbox

feishi20 commented on issue #11361:
URL: https://github.com/apache/incubator-echarts/issues/11361#issuecomment-719357075


   ```
   // source: ./node_modules/echarts/src/chart/map/MapView.js  (echarts@4.6.0)
    this.chart.on('geoRoam', (event: any) => {
       if (event) {
         const { type, zoom } = event;
   
         if (type === 'georoam' && zoom) {
           // zoom value may changed with roam
           const chartInfo = this.chart.getModel().getComponent('geo');
           if (chartInfo) {
             const currentZoom = chartInfo.coordinateSystem._zoom;
             ...
           }
         }
       }
     });
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org