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/04/29 13:50:59 UTC

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

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


   A `coordinateSystem` in your case is required. If you want to use echarts in leaflet, you may need an echarts plugin for leaflet.  Within the example, it can draw polygons by using the [custom series](https://echarts.apache.org/en/option.html#series-custom) since it depends on the plugin [Extension for Baidu Map](https://github.com/apache/incubator-echarts/tree/master/extension/bmap) which is provided officially.
   There may be no need to use bmap, you can search in Github with the keyword `leaflet-echarts` to pick one suitable for you.
   BTW, I think the version you are using is too old, it's better to upgrade it to 4.x. :)
   
   ![image](https://user-images.githubusercontent.com/26999792/80602231-705faa80-8a61-11ea-808f-192ba908461e.png)
   


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