abitwhy commented on issue #4379:
URL: https://github.com/apache/echarts/issues/4379#issuecomment-1373389655

   > @MShineRay 这是正确的办法,也可以 `echarts.getMap('china')` 后修改已经加载的地图的数据
   
   直接更改导入的地图 JSON 文件似乎更优雅。 (无需重复注册地图;无需使用 `getMap` 接口)
   
   ```js
   import map from 'map .json'
   
   function adjustMapLabelCoord(map) {
     map.features.forEach((feature) => {
       if('some conditions') feature.properties.cp = [/* coord pair */]
     })
   }
   adjustMapLabelCoord(map)
   ```


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