Commit 5effd3035c09114f1e2802becd1e17c0a927c207

Authored by fengwotao
1 parent b76cf85f

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

... ... @@ -61,6 +61,9 @@ export const option = {
61 61 emphasis: {
62 62 label: {
63 63 show: true,
  64 + formatter: function (params: Recordable) {
  65 + return params.data.name ? params.data.name : ''
  66 + },
64 67 textStyle: {
65 68 color: '#000',
66 69 fontSize: 14
... ... @@ -79,6 +82,9 @@ export const option = {
79 82 regionHeight: 3,
80 83 label: {
81 84 show: true,
  85 + formatter: function (params: Recordable) {
  86 + return params.data.name ? params.data.name : ''
  87 + },
82 88 textStyle: {
83 89 color: '#fff',
84 90 fontSize: 14
... ...