Commit 0e74ac0dc5277f449ee57965c4d943d81a12db60

Authored by fengwotao
1 parent 5effd303

feat(src/packages): 3d地图,如果是全中国,特殊处理南海海岸线问题,导致label显示不出来

@@ -62,7 +62,7 @@ export const option = { @@ -62,7 +62,7 @@ export const option = {
62 label: { 62 label: {
63 show: true, 63 show: true,
64 formatter: function (params: Recordable) { 64 formatter: function (params: Recordable) {
65 - return params.data.name ? params.data.name : '' 65 + return params.data.name ? params.data.name : ' '
66 }, 66 },
67 textStyle: { 67 textStyle: {
68 color: '#000', 68 color: '#000',
@@ -83,7 +83,7 @@ export const option = { @@ -83,7 +83,7 @@ export const option = {
83 label: { 83 label: {
84 show: true, 84 show: true,
85 formatter: function (params: Recordable) { 85 formatter: function (params: Recordable) {
86 - return params.data.name ? params.data.name : '' 86 + return params.data.name ? params.data.name : ' '
87 }, 87 },
88 textStyle: { 88 textStyle: {
89 color: '#fff', 89 color: '#fff',