From a60bf691978ed504132378d9873d0d7743ef68aa Mon Sep 17 00:00:00 2001 From: QuietlyChan <1013893148@qq.com> Date: Sat, 9 Mar 2024 16:35:43 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat=EF=BC=9A=E6=8C=89=E7=85=A7GIS=E6=80=9D?= =?UTF-8?q?=E6=83=B3=E4=BC=98=E5=8C=96=E9=AB=98=E5=BE=B7=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=82=E6=95=B0UI=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=A8=E6=96=B0=E5=8D=AB=E6=98=9F=E5=9B=BE?= =?UTF-8?q?=E5=B1=82=E3=80=81=E8=B7=AF=E7=BD=91=E5=9B=BE=E5=B1=82=E3=80=81?= =?UTF-8?q?=E5=AE=9E=E6=97=B6=E4=BA=A4=E9=80=9A=E5=9B=BE=E5=B1=82=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Maps/MapAmap/config.ts | 27 ++++- .../components/Charts/Maps/MapAmap/config.vue | 107 ++++++++++++++++-- .../components/Charts/Maps/MapAmap/index.vue | 45 ++++++-- 3 files changed, 158 insertions(+), 21 deletions(-) diff --git a/src/packages/components/Charts/Maps/MapAmap/config.ts b/src/packages/components/Charts/Maps/MapAmap/config.ts index a7ba4ac9..87b04afb 100644 --- a/src/packages/components/Charts/Maps/MapAmap/config.ts +++ b/src/packages/components/Charts/Maps/MapAmap/config.ts @@ -16,8 +16,7 @@ export enum ThemeEnum { MACARON = 'macaron', BLUE = 'blue', DARKBLUE = 'darkblue', - WINE = 'wine', - WEIXIN = 'tileLayer' + WINE = 'wine' } export enum LangEnum { @@ -31,6 +30,11 @@ export enum ViewModeEnum { STEREOSCOPIC = '3D' } +export enum ShowHideEnum { + SHOW = true, + HIDE = false +} + export enum FeaturesEnum { BG = 'bg', POINT = 'point', @@ -71,6 +75,25 @@ export const option = { }, mapMarkerType: MarkerEnum.CIRCLE_MARKER, viewMode: ViewModeEnum.PLANE, + showLabel: ShowHideEnum.SHOW, + satelliteTileLayer: { + show: ShowHideEnum.HIDE, + zIndex: 1, + opacity: 1, + zooms: [3, 18] + }, + roadNetTileLayer: { + show: ShowHideEnum.HIDE, + zIndex: 2, + opacity: 1, + zooms: [3, 18] + }, + trafficTileLayer: { + show: ShowHideEnum.HIDE, + zIndex: 3, + opacity: 1, + zooms: [3, 18] + }, lang: LangEnum.ZH_CN, features: [FeaturesEnum.BG, FeaturesEnum.POINT, FeaturesEnum.ROAD, FeaturesEnum.BUILDING] } diff --git a/src/packages/components/Charts/Maps/MapAmap/config.vue b/src/packages/components/Charts/Maps/MapAmap/config.vue index 8d8936b5..48d7edc5 100644 --- a/src/packages/components/Charts/Maps/MapAmap/config.vue +++ b/src/packages/components/Charts/Maps/MapAmap/config.vue @@ -22,13 +22,21 @@ - + + + + + + 是否显示 + + + @@ -76,11 +84,94 @@ + + + + + + 是否显示 + + + + + + + + + + + + + + + + + 是否显示 + + + + + + + + + + + + + + + + + 是否显示 + + + + + + + + + + + + +