From 7bcdaba7faad85bf16bf0f2a1dbd3e390bdb15dd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 05 Nov 2024 21:15:40 +0800
Subject: [PATCH] 救援队伍统计、应急空间统计、风险源统计图表样式初步调整,园区概况布局调整 倾斜模型加载配置微调后续看加载效果 企业名录样式调整
---
src/hooks/initMap.js | 29 ++++++++++++-----------------
1 files changed, 12 insertions(+), 17 deletions(-)
diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index 872ce88..2675406 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-11-04 18:08:12
* @FilePath: \bigScreen\src\hooks\initMap.js
* @Description:
*
@@ -23,31 +23,26 @@
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')
const global = appContext.config.globalProperties
-
global.$viewer = viewer
- store.setLoadMap(true)
+ global.$viewer.zoomToPosition(new DC.Position(
+ 115.1048036679409,
+ 27.276835758787513,
+ 4000,
+ 0,
+ -90,
+ 0
+ ), () => {
- // 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)
+ store.setLoadMap(true)
+ })
})
})
}
--
Gitblit v1.9.3