From 25ce610f6ecca7325e7a743dc032c4a76559c63d Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 02 Jul 2021 09:10:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/pyhmap

---
 widgets/profileAnalysis/Widget.js |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/widgets/profileAnalysis/Widget.js b/widgets/profileAnalysis/Widget.js
index 602ea9f..ea4ab10 100644
--- a/widgets/profileAnalysis/Widget.js
+++ b/widgets/profileAnalysis/Widget.js
@@ -149,7 +149,6 @@
                 }
                 //创建剖面分析对象
                 var profile = new Cesium.Profile(scene);
-
                 function createTooltip(frameDiv) {//抄录createTooltip函数
 
                     var tooltip = function (frameDiv) {
@@ -190,14 +189,13 @@
                             this.message = message;
                         }
                     };
-
                     return new tooltip(frameDiv);
                 }
 
                 var tooltip = createTooltip(document.body);
                 var widget = viewer.cesiumWidget;
                 try {
-                    //添加S3M图层 // 舍弃
+                    //添加S3M图层 // 舍弃 
 
                     // var ground1Promise = scene.addS3MTilesLayerByScp(URL_CONFIG.SCP_CBD_GROUND1, {
                     //     name: 'ground1'
@@ -339,9 +337,16 @@
                     $("#pro").width(0);
                     $("#pro").height(0);
                 })
-
+                this.handlerLine = handlerLine;
+                topic.subscribe("closep", lang.hitch(this, this.closep));
             },
-
+            handlerLine: '',
+            closep: function () {
+                $(".jimu-widget-profileAnalysis").hide();
+                this.handlerLine.clear();
+                $("#pro").width(0);
+                $("#pro").height(0);
+            },
             onOpen: function () {
 
             },

--
Gitblit v1.9.3