From 4097cc9ad6c60bbb5e9864d3f54a37cfbb40026e Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 三月 2025 15:31:28 +0800
Subject: [PATCH] 临时:路网版本

---
 src/utils/map/index_old.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/utils/map/index_old.js b/src/utils/map/index_old.js
index dbe9f78..77cc81e 100644
--- a/src/utils/map/index_old.js
+++ b/src/utils/map/index_old.js
@@ -1,5 +1,8 @@
 /* eslint-disable no-undef */
 // import '@/lib/AMap';
+import { useToolboxStore } from '@/stores/toolbox';
+
+const toolboxStore = useToolboxStore();
 
 var mapInitDone = false;
 var onMapMountedEvents = [];
@@ -44,13 +47,13 @@
     alwaysRender: false,
     showLabel: true,
     showBuildingBlock: true,
-    mapStyle: 'amap://styles/e1e78509de64ddcd2efb4cb34c6fae2a',
+    // mapStyle: 'amap://styles/e1e78509de64ddcd2efb4cb34c6fae2a',
     features: ['bg', 'road'],
     pitch: 45, // 鍦板浘淇话瑙掑害锛屾湁鏁堣寖鍥� 0 搴�- 83 搴�
     viewMode: '3D', // 鍦板浘妯″紡
     resizeEnable: true,
     center: [121.6039283, 31.25295567],
-    zooms: [3, 18],
+    zooms: [0, 18],
     zoom: 14
   });
 
@@ -58,6 +61,7 @@
   satellite = new AMap.TileLayer.Satellite();
   satellite.show();
   map.add([satellite]);
+  toolboxStore.featuresStatus = true;
 
   _initControlbar();
   // _initMouseTool();
@@ -73,6 +77,7 @@
     }
   });
   map.addControl(controlbar);
+  toolboxStore.controlbarStatus = true;
 }
 
 // 榧犳爣缁樺浘鍒濆鍖�

--
Gitblit v1.9.3