Commit 5effd3035c09114f1e2802becd1e17c0a927c207
1 parent
b76cf85f
feat(src/packages): 3d地图,如果是全中国,特殊处理南海海岸线问题,导致label显示不出来
Showing
1 changed file
with
6 additions
and
0 deletions
| @@ -61,6 +61,9 @@ export const option = { | @@ -61,6 +61,9 @@ export const option = { | ||
| 61 | emphasis: { | 61 | emphasis: { |
| 62 | label: { | 62 | label: { |
| 63 | show: true, | 63 | show: true, |
| 64 | + formatter: function (params: Recordable) { | ||
| 65 | + return params.data.name ? params.data.name : '' | ||
| 66 | + }, | ||
| 64 | textStyle: { | 67 | textStyle: { |
| 65 | color: '#000', | 68 | color: '#000', |
| 66 | fontSize: 14 | 69 | fontSize: 14 |
| @@ -79,6 +82,9 @@ export const option = { | @@ -79,6 +82,9 @@ export const option = { | ||
| 79 | regionHeight: 3, | 82 | regionHeight: 3, |
| 80 | label: { | 83 | label: { |
| 81 | show: true, | 84 | show: true, |
| 85 | + formatter: function (params: Recordable) { | ||
| 86 | + return params.data.name ? params.data.name : '' | ||
| 87 | + }, | ||
| 82 | textStyle: { | 88 | textStyle: { |
| 83 | color: '#fff', | 89 | color: '#fff', |
| 84 | fontSize: 14 | 90 | fontSize: 14 |