From c5558ae0a6152b56b2b487b94f3c616648104edd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 30 Oct 2024 18:10:32 +0800
Subject: [PATCH] 页面登录,请求拦截,响应拦截,持久化存储,路由拦截等处理
---
src/hooks/initMap.js | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index dce2117..872ce88 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-28 19:42:36
+ * @LastEditTime: 2024-10-30 18:09:34
* @FilePath: \bigScreen\src\hooks\initMap.js
* @Description:
*
@@ -10,11 +10,11 @@
*/
let viewer = null
const { VITE_APP_BASE } = import.meta.env
-
import { useMap } from 'store/map'
import { nextTick } from 'vue'
export function readyViewer () {
+ const Cesium = DC.getLib('Cesium')
const { appContext } = getCurrentInstance()
const store = useMap()
@@ -33,6 +33,21 @@
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