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/12/21 07:44:11 UTC

[GitHub] [incubator-echarts] plainheart commented on issue #13851: 百度地图 作为底图时经纬度坐标转换为像素坐标,目前的echarts实例convertToPixel 方法不管用

plainheart commented on issue #13851:
URL: https://github.com/apache/incubator-echarts/issues/13851#issuecomment-748821271


   目前可以使用
   
   ```js
   chart.getModel().getComponent('bmap').coordinateSystem.dataToPoint([120, 30])
   ```
   
   将经纬度转为像素坐标。
   或者拿到百度地图实例之后,自行调用其提供的 `pointToOverlayPixel` 或 `pointToPixel` API 转换。


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