From 644d761cbacccc6268777b70e46905650c5bc968 Mon Sep 17 00:00:00 2001 From: daidai Date: Sat, 24 Sep 2022 18:54:05 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=AF=E9=80=89=E7=9C=81=E4=BB=BD?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E7=BB=84=E4=BB=B6=E5=BC=82=E6=AD=A5=E5=8A=A0?= =?UTF-8?q?=E8=BD=BDgeojson?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Maps/MapBase/config.ts | 40 ++++----- .../components/Charts/Maps/MapBase/config.vue | 32 ++++--- .../components/Charts/Maps/MapBase/index.vue | 89 +++++++------------ 3 files changed, 66 insertions(+), 95 deletions(-) diff --git a/src/packages/components/Charts/Maps/MapBase/config.ts b/src/packages/components/Charts/Maps/MapBase/config.ts index f08713bc..13796bd0 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.ts +++ b/src/packages/components/Charts/Maps/MapBase/config.ts @@ -10,7 +10,7 @@ export const option = { dataset: dataJson, mapRegion: { adcode: 'china', - adcodeFlag: true, + showHainanIsLands:true }, tooltip: { show: true, @@ -42,25 +42,13 @@ export const option = { }, }, geo: { + show:false, type: 'map', roam: false, map: "china", selectedMode: false, //是否允许选中多个区域 // aspectScale: 1, zoom: 1, - tooltip: { - show: false, - }, - label: { - show: false, - }, //地图中文字内容及样式控制 - itemStyle: { - areaColor: "rgba(0,0,0,0)", - borderColor: "rgba(0,0,0,0)", - }, - emphasis: { - disabled: true, - }, }, series: [ { @@ -135,7 +123,7 @@ export const option = { }, label: { show: false, - color: "#000", + color: "#fff", // formatter: function (val:any) { // // console.log(val) // if (val.data !== undefined) { @@ -145,7 +133,18 @@ export const option = { // } // }, rich: {}, - emphasis: { show: false }, + // emphasis: { show: false }, + }, + emphasis: { + disabled:false, + label: { + color: "#fffFFF", + }, + itemStyle:{ + areaColor: "#389BB7", + shadowColor:"#389BB7", + borderWidth: 1, + } }, itemStyle: { // borderColor: "rgba(147, 235, 248, .8)", @@ -172,14 +171,7 @@ export const option = { shadowOffsetX: -2, shadowOffsetY: 2, shadowBlur: 10, - emphasis: { - disabled:false, - areaColor: "#389BB7", - shadowColor:"#389BB7", - borderWidth: 1, - }, - showHainanIsLands: true, - + }, } diff --git a/src/packages/components/Charts/Maps/MapBase/config.vue b/src/packages/components/Charts/Maps/MapBase/config.vue index 5bd43a87..65eab381 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.vue +++ b/src/packages/components/Charts/Maps/MapBase/config.vue @@ -8,7 +8,7 @@ - - - + + - + - + + + + @@ -111,7 +114,7 @@ - 显示南海群岛 + 显示南海群岛 @@ -148,7 +151,6 @@ diff --git a/src/packages/components/Charts/Maps/MapBase/index.vue b/src/packages/components/Charts/Maps/MapBase/index.vue index 2a01aeab..86628e73 100644 --- a/src/packages/components/Charts/Maps/MapBase/index.vue +++ b/src/packages/components/Charts/Maps/MapBase/index.vue @@ -4,7 +4,7 @@