From 9a37c5e1b2190c3f6ec71483923922189091dd52 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 18 Dec 2024 09:42:01 +0800
Subject: [PATCH] 事件模拟更新

---
 src/hooks/initMap.js |   60 ------------------------------------------------------------
 1 files changed, 0 insertions(+), 60 deletions(-)

diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index 872ce88..e69de29 100644
--- a/src/hooks/initMap.js
+++ b/src/hooks/initMap.js
@@ -1,60 +0,0 @@
-/*
- * @Author: shuishen 1109946754@qq.com
- * @Date: 2024-10-25 15:09:55
- * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-30 18:09:34
- * @FilePath: \bigScreen\src\hooks\initMap.js
- * @Description: 
- * 
- * Copyright (c) 2024 by shuishen, All Rights Reserved. 
- */
-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()
-
-  function initMap () {
-    if (viewer) return
-
-    nextTick(() => {
-      DC.ready({
-        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)
-
-        // 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)
-      })
-    })
-  }
-
-  initMap()
-
-  return {
-
-  }
-}
\ No newline at end of file

--
Gitblit v1.9.3