From 0e828960b1ffc10f19303316e7e1a10c9117614e Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 14 九月 2023 18:20:43 +0800 Subject: [PATCH] sdk版本更新 --- src/components/mouseMove.vue | 23 ++--------------------- 1 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/components/mouseMove.vue b/src/components/mouseMove.vue index 0d2f2cc..a5b5037 100644 --- a/src/components/mouseMove.vue +++ b/src/components/mouseMove.vue @@ -25,6 +25,7 @@ </template> <script lang="ts" setup> +import InitMap from "@/assets/js/Map"; import { ref, onMounted, @@ -114,27 +115,7 @@ }); }; const gridSwitch = () => { - if (!window.graticules) { - window.graticules = new SmartEarth.Cesium.Graticules( - earthCtrl.Viewer, - SmartEarth.Cesium.Color.PALEGREEN - ); - - earthCtrl.Viewer.scene.preUpdate.addEventListener(function () { - window.graticules.update(); - }); - } else { - window.graticules._enable = false; - } - // window.earthCtrl.wireframe = !window.earthCtrl.wireframe; - // gridIsshow.value = !gridIsshow.value; - // if (gridIsshow.value) { - // grid(10); - // // getHeight(); - // // createPrimitives(); - // } else { - // gridDel(); - // } + InitMap.showlonlatLine(); }; const getHeight = () => { let removeListener = Viewer.camera.changed.addEventListener(() => { -- Gitblit v1.9.3