From c7a16ca1b6fbcb0b82a4a09c2e75014624082e37 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期四, 27 三月 2025 22:45:48 +0800
Subject: [PATCH] 修复走航融合功能bug
---
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