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/14 02:08:31 UTC

[GitHub] [incubator-echarts] lbhchangyj opened a new issue #13430: api.coord is not a function

lbhchangyj opened a new issue #13430:
URL: https://github.com/apache/incubator-echarts/issues/13430


   ### Version
   4.2.1
   
   ### Steps to reproduce
   {
               name: "map",
               type: "custom",
               coordinateSystem: "bmap", 
               renderItem: function (params, api) {
                 console.log(params.dataIndex)
                 let imgPath = "";
                 if (
                   dataTemp[params.dataIndex].mag > 0 &&
                   dataTemp[params.dataIndex].mag <= 50
                 ) {
                   imgPath = "../common/image/car/car_01.png";
                   return {
                     type: "image",
                     style: {
                       image: imgPath,
                       x: api.coord([
                         dataTemp[params.dataIndex].lng,
                         dataTemp[params.dataIndex].lat,
                       ])[0],
                       y: api.coord([
                         dataTemp[params.dataIndex].lng,
                         dataTemp[params.dataIndex].lat,
                       ])[1],
                       width: 20,
                       height: 19,
                     },
                   };
                 }
               },
               data: dataTemp,
             },
   }
   
   ### What is expected?
   正常使用
   
   ### What is actually happening?
   api.coord is not a function
   参考#6953 设置require('echarts/extension/bmap/bmap') 依然出现该问题
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13430: api.coord is not a function

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13430:
URL: https://github.com/apache/incubator-echarts/issues/13430#issuecomment-708109679


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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


[GitHub] [incubator-echarts] plainheart commented on issue #13430: api.coord is not a function

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13430:
URL: https://github.com/apache/incubator-echarts/issues/13430#issuecomment-708118636


   能否提供更多信息?比如如何 import echarts 和 bmap extension.


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


[GitHub] [incubator-echarts] plainheart edited a comment on issue #13430: api.coord is not a function

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #13430:
URL: https://github.com/apache/incubator-echarts/issues/13430#issuecomment-708118636


   能否提供更多信息?比如如何 import echarts 和 bmap extension。最好能提供截图或者代码。


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