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 2021/03/30 03:24:30 UTC

[GitHub] [echarts] zhoufanglu removed a comment on issue #14550: 关于effectScatter经纬度不准确的问题

zhoufanglu removed a comment on issue #14550:
URL: https://github.com/apache/echarts/issues/14550#issuecomment-809876437


   > 注意坐标系,阿里云这个应该是高德坐标系,在百度地图上显示需要转换下。
   
   转换过了 没有效果
   ```
       //将腾讯/高德地图经纬度转换为百度地图经纬度
       qqMapTransBMap(lng, lat) {
         let x_pi = 3.14159265358979324 * 3000.0 / 180.0;
         let x = lng;
         let y = lat;
         let z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * x_pi);
         let theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * x_pi);
         let lngs = z * Math.cos(theta) + 0.0065;
         let lats = z * Math.sin(theta) + 0.006;
   
         return {
           lng: lngs,
           lat: lats
         }
       }
   ```


-- 
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