From f789d1d5841d0f8feefc16570189304c9d9204a9 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 31 Oct 2024 18:31:40 +0800
Subject: [PATCH] 加载倾斜模型 图层组件封装 路由相关调整 项目基础路径调整
---
src/hooks/initMap.js | 19 ++-----------------
1 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index 872ce88..fbcc970 100644
--- a/src/hooks/initMap.js
+++ b/src/hooks/initMap.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 15:09:55
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-30 18:09:34
+ * @LastEditTime: 2024-10-31 18:27:53
* @FilePath: \bigScreen\src\hooks\initMap.js
* @Description:
*
@@ -23,7 +23,7 @@
nextTick(() => {
DC.ready({
- baseUrl: `${VITE_APP_BASE}/libs/dc-sdk/resources/`
+ baseUrl: `${VITE_APP_BASE}libs/dc-sdk/resources/`
}).then(() => {
viewer = new DC.Viewer('viewer-container')
@@ -33,21 +33,6 @@
global.$viewer = viewer
store.setLoadMap(true)
-
- // let layer = new DC.HtmlLayer('layer')
- // viewer.addLayer(layer)
- // let divIcon = new DC.DivIcon(
- // new DC.Position(125, 25),
- // `<div class="public-map-popup">
- // <div class="marsBlueGradientPnl">
- // <div>指挥室</div>
- // </div>
- // </div>`
- // )
-
- // divIcon.setStyle({
- // })
- // layer.addOverlay(divIcon)
})
})
}
--
Gitblit v1.9.3