liuyg
2021-06-28 3597dfbb9e33ab955d259df876d72a99dc817d2a
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);