<!--
为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
-->
### One-line summary [问题简述]
China map 里 使用nameMap做国际化映射,只有南海诸岛映射不成功
### Version & Environment [版本及环境]
+ ECharts version [ECharts 版本]: 4.1.0
+ Browser version [浏览器类型和版本]:chrome 60.0.3112.90(正式版本) (32 位)
+ OS Version [操作系统类型和版本]: window7
### Expected behaviour [期望结果]
使用 nameMap可以把'南海诸岛'映射为'South China Sea Islands'
### ECharts option [ECharts配置项]
<!-- Copy and paste your 'echarts option' here. -->
<!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
```javascript
option = {
geo: {
map: 'china',
top: 70,
zoom: 0.85,
scaleLimit: {
max: 2,
min: 0.75
},
roam: true, //scale, move
label: {
show: true,
color: '#2c7778',
emphasis: {
show: true,
color: '#2c7778',
}
},
itemStyle: {
normal: {
areaColor: '#000',
borderColor: '#50E0E3'
},
emphasis: {
areaColor: '#222',
borderColor: '#50E0E3'
}
},
//地图中,地名中英文映射(国际化)
nameMap: {
'安徽': 'Anhui',
'北京': 'Beijing',
'福建': 'Fujian',
'甘肃': 'Gansu',
'广东': 'Guangdong',
'广西': 'Guangxi',
'贵州': 'Guizhou',
'海南': 'Hainan',
'河北': 'Hebei',
'河南': 'Henan',
'黑龙江': 'Heilongjiang',
'湖北': 'Hubei',
'湖南': 'Hunan',
'吉林': 'Jilin',
'江苏': 'Jiangsu',
'江西': 'Jiangxi',
'辽宁': 'Liaoning',
'内蒙古': 'Inner Mongolia',
'宁夏': 'Ningxia',
'青海': 'Qinghai',
'山东': 'Shandong',
'山西': 'Shanxi',
'陕西': 'Shaanxi',
'上海': 'Shanghai',
'四川': 'Sichuan',
'天津': 'Tianjin',
'西藏': 'Tibet',
'新疆': 'Xinjiang',
'云南': 'Yunnan',
'浙江': 'Zhejiang',
'重庆': 'Chongqing',
'澳门': 'Macao',
'香港': 'Hong Kong',
'台湾': 'Taiwan',
'南海诸岛': 'South China Sea Islands'
}
},
series: []
}
```
### Other comments [其他信息]
<!-- For example: Screenshot or Online demo -->
<!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
[ Full content available at:
https://github.com/apache/incubator-echarts/issues/9066 ]
This message was relayed via gitbox.apache.org for [email protected]