zhoufanglu commented on issue #14550:
URL: https://github.com/apache/echarts/issues/14550#issuecomment-809876681


   > 注意坐标系,阿里云这个应该是高德坐标系,在百度地图上显示需要转换下。
   
   ```js
       //将腾讯/高德地图经纬度转换为百度地图经纬度
       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:
us...@infra.apache.org



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

Reply via email to