-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echarts 4.0.4 在设置 geo 为 world 的情况下,使用nameMap 映射中文后发生的一系列bug #8205
Comments
@hl-stone 请问下国家名称发生偏移的问题,修改源码或者修改 world.json或world.js,具体是如何修改的呢? |
@shuangmianxiaoQ 可以参考 |
@hl-stone 好的,十分感谢! |
我的版本是echarts 4.2.1 世界地图 鼠标悬浮在新西兰上面,label会偏移到地图正中间,请问如何解决? |
@xieyezi 查看上面回复,我的4.0.4版本是修改了源码,不知道新版本是否修复了 |
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
One-line summary [问题简述]
2 国家名称发生便宜的问题【例如俄罗斯、美国、新西兰】(此bug可以修改源码或者修改 world.json或world.js)
3 在 Issues 5745 发现有针对 regions 属性不好使的解决方法,参考链接 https://github.com/apache/incubator-echarts/issues/5745,使用此方式后会导致另外一个问题的发生,如果在第二条里面如果采用修改 echarts 源码修正俄罗斯、美国 label 偏移,代码如下:
var geoCoordMap = {
'Russia': [100, 60],
'俄罗斯': [100, 60],
'United States': [-99, 38],
'美国': [-99, 38],
'United States of America': [-99, 38],
'新西兰': [170, -45]
};
采用 5745 里面的处理方式,发现名称便宜的bug 有复现了!
Version & Environment [版本及环境]
Expected behaviour [期望结果]
1 期望在使用 nameMap 映射后 regions 属性好使
2 期望能修正名称映射后的位置显示
ECharts option [ECharts配置项]
Other comments [其他信息]
gallery 例子
http://gallery.echartsjs.com/editor.html?c=xS1Edb0qnz
The text was updated successfully, but these errors were encountered: