helgasoft commented on issue #19525:
URL: https://github.com/apache/echarts/issues/19525#issuecomment-1899529317

   It is hard to get the label positions from ECharts, and much easier to 
calculate them from the geoJson map file.
   The [official 
example](https://echarts.apache.org/examples/en/editor.html?c=map-HK) reads 
from [this 
geoJson](https://echarts.apache.org/examples/data/asset/geo/HK.json). The file 
has all provinces and their contour line coordinates. For each province you 
need to sum all latitude and longitude values separately and calculate their 
mean.  These two numbers will be the geographical center of the province, i.e. 
the province label position.
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to