From cd075ebe66103b6876557d9ab84990217642f8bf Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 07 Feb 2023 09:17:08 +0800
Subject: [PATCH] 水文水环境分析-洪水淹没:固定数据点、点击绘制按钮和清除按钮,清空数据

---
 widgets/FloodAnalysis/Widget.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/widgets/FloodAnalysis/Widget.js b/widgets/FloodAnalysis/Widget.js
index 4554fd4..5d2634e 100644
--- a/widgets/FloodAnalysis/Widget.js
+++ b/widgets/FloodAnalysis/Widget.js
@@ -41,6 +41,7 @@
                 that.deleteEntitys(that, pointId, shape, boildOne, boildTwo, boildThree, waterEntity);
                 //隐藏详情框
                 that.showDetail(false)
+                that.clearData()
                 $('#dong_time').val(0.5);
                 $('.dong-progress .container #progress_bar').width(0);
                 $('.dong-progress').stop().hide();
@@ -305,7 +306,6 @@
                     });
                     return;
                 }
-                ;
                 // 提取坐标信息
                 var list = waterEntity.polygon.hierarchy.getValue().positions;
                 // 存放坐标信息,做请求数据使用
@@ -383,6 +383,7 @@
 
             $('#dong_delet').click(function () {
                 that.showDetail(false)
+                that.clearData()
                 that.deleteEntitys(that, pointId, shape, boildOne, boildTwo, boildThree, waterEntity);
 
                 handler.destroy();
@@ -563,7 +564,8 @@
                                 color: Cesium.Color.RED,
                                 pixelSize: 16,
                                 //防止地形遮挡住点
-                                disableDepthTestDistance: Number.POSITIVE_INFINITY
+                                disableDepthTestDistance: Number.POSITIVE_INFINITY,
+                                heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
                             },
                         });
                     }
@@ -626,5 +628,11 @@
             var pt = turf.point([point.LGTD, point.LTTD])
             return turf.booleanPointInPolygon(pt, poly)
         },
+
+        //清除框内数据
+        clearData:function (){
+            $('#dong_max_height').val(0);
+            $('#dong_min_height').val(0);
+        },
     });
 });

--
Gitblit v1.9.3