提交 fffc65ac 编写于 作者: K kener

代码优化

上级 e87e763f
......@@ -872,9 +872,9 @@ define(function (require) {
// 位置转换
getMarkCoord : function (serie, seriesIndex, mpData, markCoordParams) {
return _geoCoord[mpData.name]
return (mpData.geoCoord || _geoCoord[mpData.name])
? this.geo2pos(
markCoordParams.mapType, _geoCoord[mpData.name]
markCoordParams.mapType, mpData.geoCoord || _geoCoord[mpData.name]
)
: [0, 0];
},
......@@ -906,7 +906,6 @@ define(function (require) {
.replace('{b}','{b0}');
formatter = formatter.replace('{a0}', name)
.replace('{b0}', value);
return formatter;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册