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/01/08 13:25:19 UTC

[GitHub] [incubator-echarts] DLFouge commented on issue #13991: echarts结合百度地图使用,地图实例中经度为负的点无法添加至地图

DLFouge commented on issue #13991:
URL: https://github.com/apache/incubator-echarts/issues/13991#issuecomment-756754270


   > 能否提供更加完善的例子?我测试可以正常添加。
   > 
   > ![图片](https://user-images.githubusercontent.com/26999792/104003200-12cd5180-51dd-11eb-8dee-c51b0f5d19ca.png)
   
   var chart = echarts.inite(document.getElementById("demo"));
   var option = {...}
   chart.setOption(option);
   var map = chart.getModel().getComponent('bmap').getBMap();
   const point = new BMap.Point(-0.51, 9.24);
       const myIcon = new BMap.Icon("http://lbsyun.baidu.com/jsdemo/img/fox.gif", new BMap.Size(300, 157));
       const marker = new BMap.Marker(point, {
           icon: myIcon
       }); 
       map.addOverlay(marker);


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