From b2fdf4f25251229adbe9a6963cb35fb7fc868172 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期二, 02 一月 2024 18:29:14 +0800
Subject: [PATCH] GLB模型添加.修改,删除

---
 src/components/map/viewer.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/map/viewer.vue b/src/components/map/viewer.vue
index b860b00..b07f43c 100644
--- a/src/components/map/viewer.vue
+++ b/src/components/map/viewer.vue
@@ -42,6 +42,7 @@
 import jiejing from "@/assets/img/new/jiejing.png";
 import "animate.css";
 import Bus from "@tools/Bus";
+import mapViewer from "../../assets/js/Layer/mapViewer";
 
 let activeLi, nLayer, LWLayer;
 export default {
@@ -132,8 +133,8 @@
       Viewer.scene.globe.translucency.frontFaceAlpha = 0.5;
       Viewer.scene.globe.undergroundColor = undefined;
       //寮�鍚紪杈戝苟鍚敤灞炴�у脊绐�
-      sgworld.Creator.SimpleGraphic.setEdit(true, {
-        editProp: true,
+      sgworld.Creator.SimpleGraphic.setEdit(false, {
+        editProp: false,
         editPropData: {
           offset: "r",
           height: "60%",
@@ -196,6 +197,8 @@
       //鍒濆鍖栧脊绐椾簨浠�
       // that.showBottom();
       that.initLayerOpen();
+      //娣诲姞榧犳爣鐐瑰嚮浜嬩欢
+      mapViewer.addClick();
     });
     let size = this.detectZoom();
     this.scale = (100 / size).toFixed(2);

--
Gitblit v1.9.3