From 3597dfbb9e33ab955d259df876d72a99dc817d2a Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 28 Jun 2021 14:54:51 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/pyhmap

---
 widgets/LeftNavigationBar/Widget.js |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/widgets/LeftNavigationBar/Widget.js b/widgets/LeftNavigationBar/Widget.js
index 7f15f4f..2d557da 100644
--- a/widgets/LeftNavigationBar/Widget.js
+++ b/widgets/LeftNavigationBar/Widget.js
@@ -331,7 +331,7 @@
             },
             begin: function (data) {
                 var that = this;
-
+                window.mySanweiShujuOpens = {};//全局scene.open资源
                 var a = null;
 
                 layui.use(function () {
@@ -388,7 +388,9 @@
                                             that[item.id] = scene.open(host + partOfUrl, undefined, {
                                                 autoSetView: false //不自动定位
                                             });
-                                            console.log(222)
+                                            
+                                            window.mySanweiShujuOpens[item.id] = that[item.id];
+                                            // console.log(222)
                                             topic.publish('appendTilt', 'Layermanagement', item);
                                             topic.publish('appendTiltS', 'spatialAnalysis', item);
                                             topic.publish('addLayersLegends', 'legends', item);
@@ -432,7 +434,7 @@
                                                         destination: rectangle
                                                     });
                                                 });
-                                                console.log(444)
+                                                // console.log(444)
                                                 topic.publish('appendItem', 'Layermanagement', item, that[item.id]);
                                                 topic.publish('appendItemS', 'spatialAnalysis', item, that[item.id]);
                                                 topic.publish('addLayersLegends', 'legends', item);
@@ -513,7 +515,8 @@
                                         that[obj.data.id] = scene.open(host + partOfUrl, undefined, {
                                             autoSetView: false //不自动定位
                                         });
-                                        console.log(333)
+                                        window.mySanweiShujuOpens[obj.data.id] = that[obj.data.id];
+
                                         topic.publish('appendTilt', 'Layermanagement', obj.data);
                                         topic.publish('appendTiltS', 'spatialAnalysis', obj.data);
                                         topic.publish('addLayersLegends', 'legends', obj.data);
@@ -552,7 +555,7 @@
                                                     destination: rectangle
                                                 });
                                             });
-                                            console.log(555)
+                                            // console.log(555)
                                             topic.publish('appendItem', 'Layermanagement', obj.data, that[obj.data.id]);
                                             topic.publish('appendItemS', 'spatialAnalysis', obj.data, that[obj.data.id]);
                                             topic.publish('addLayersLegends', 'legends', obj.data);

--
Gitblit v1.9.3