From 4ad9804e68c0fa3fb07a85cefc4d73d9e6f5b268 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 04 Jan 2022 16:01:09 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web

---
 src/components/mobilemap/index.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index 32a9a11..1f4245d 100644
--- a/src/components/mobilemap/index.vue
+++ b/src/components/mobilemap/index.vue
@@ -21,6 +21,8 @@
     <mobileGoTo></mobileGoTo>
     <!-- 实景窗口 -->
     <mobilePanorama></mobilePanorama>
+    <!-- 盖住左下角 -->
+    <div class="cover_mobileMap">智慧校园</div>
   </div>
 </template>
 <script>
@@ -240,9 +242,6 @@
       viewer.on(that.DC.SceneEventType.CAMERA_CHANGED, (e) => {
         //相机移动最后参数
         //控制高度
-        if (that.dimension == "3D") {
-          console.log("3维不做高度限制");
-        }
         let isSet = that.dimension == "3D" ? false : true;
         const height = Math.ceil(viewer.camera.positionCartographic.height);
         let conBack = (height) => {
@@ -428,7 +427,7 @@
       tilesetLayer["changesilhouetteBlue"] = () => {
         silhouetteBlue.selected = [];
       };
-      tilesetLayer.show = false;
+      // tilesetLayer.show = false;
       //精细模型↑
 
       // 2.5D贴图↓
@@ -556,7 +555,7 @@
             ? doit([116.36618337, 27.95911915, 2000.0])
             : doit([117.08513731, 31.64790556, 600.0]);
         };
-        startPoint(1);
+        // startPoint(1);
       }
       //传递默认位置
       that.$store.commit("MSET_MORENWEIZHI", startPoint);
@@ -618,7 +617,15 @@
       viewer.zoomController.enable = true;
       viewer.locationBar.enable = false;
       viewer.distanceLegend.enable = false;
-      if (true) {
+      //判断默认维度
+      //原本默认是2.5d  改为3d默认时做出改变
+      if (that.dimension == "2.5D") {
+        that.$store.commit("MSET_DIMENSION", "2.5D"); //切换2.5D设置
+      } else if (that.dimension == "3D") {
+        that.$store.commit("MSET_DIMENSION", "3D"); //切换3D设置
+      }
+      if (false) {
+        //镜头改变示例
         // viewer.scene.screenSpaceCameraController.enableZoom = false; //控制视角缩放
         // viewer.scene.screenSpaceCameraController.enableTilt = false; //控制视角旋转
         // viewer.scene.screenSpaceCameraController.minimumZoomDistance = 200; //最小缩放

--
Gitblit v1.9.3