From 33d69f9ff8b7100494f873b405d0431ec95b2ada Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 10 Oct 2023 11:09:44 +0800
Subject: [PATCH] 地图图层更换功能添加

---
 src/store/common.ts |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/store/common.ts b/src/store/common.ts
index b886078..5dc1429 100644
--- a/src/store/common.ts
+++ b/src/store/common.ts
@@ -4,7 +4,12 @@
   projectId: null as string | null,
   dockSns: null as string | null,
   snList: [] as string[],
-  projectName: '' as string
+  projectName: '' as string,
+  // 地图setting
+  mapSetting: {
+    mode: 0, // 0为标准地图, 1为卫星地图
+    roadLine: true,
+  },
 })
 export type RootStateType = ReturnType<typeof state>
 const mutations: MutationTree<RootStateType> = {
@@ -21,6 +26,14 @@
   },
   SET_PROJECT_NAME (state, projectName: string) {
     state.projectName = projectName
+  },
+  // 设置地图模式
+  SET_MAP_SETTING_MODE (state, mode: number) {
+    state.mapSetting.mode = mode
+  },
+  // 设置地图路网
+  SET_MAP_SETTING_ROAD_LINE (state, roadLine: boolean) {
+    state.mapSetting.roadLine = roadLine
   }
 }
 export default {

--
Gitblit v1.9.3