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/05/04 03:40:07 UTC

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

plainheart edited a comment on issue #12539:
URL: https://github.com/apache/incubator-echarts/issues/12539#issuecomment-623240560


   BTW, we can also draw polygons with `leaflet` api and it's not necessary to use echarts to draw.
   ```js
   var leaflet = myChart.getModel().getComponent('leaflet').getLeaflet();
   var latlngs = [
       [39.53, 116.7],
       [36.03, 103.73],
       [27.87, 112.91],
       [28.01, 120.65],
       [39.95, 119.57]
   ];
   L.polygon(latlngs, { color: 'red' }).addTo(leaflet);
   ```
   
   Also, that's our expected result.
   
   ![image](https://user-images.githubusercontent.com/26999792/80934321-40fec400-8dfa-11ea-8b48-f6a2f723b190.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