From a84360f5d8ac65ac860ebfb3f32cd6378540baf8 Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期二, 15 三月 2022 14:54:47 +0800
Subject: [PATCH] 重新打开监控网格,清除之前数据

---
 widgetsTS/widget_grid/view.html |    2 +-
 widgetsTS/widget_grid/widget.js |   15 ++++++++++-----
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/widgetsTS/widget_grid/view.html b/widgetsTS/widget_grid/view.html
index acaef70..ac8ae74 100644
--- a/widgetsTS/widget_grid/view.html
+++ b/widgetsTS/widget_grid/view.html
@@ -30,7 +30,7 @@
   </div>
   <div class="infoview">
     <div>
-      <label><input type='checkbox' id='show_gridmap' checked/>缃戞牸鍥�(CO:mg/m鲁 &nbsp; 鍏朵粬:渭g/m鲁)</label>
+      <label><input type='checkbox' id='show_gridmap'/>缃戞牸鍥�(CO:mg/m鲁 &nbsp; 鍏朵粬:渭g/m鲁)</label>
     </div>
     <div>
       <div id="style_radio"></div>
diff --git a/widgetsTS/widget_grid/widget.js b/widgetsTS/widget_grid/widget.js
index ef50789..3255ea5 100644
--- a/widgetsTS/widget_grid/widget.js
+++ b/widgetsTS/widget_grid/widget.js
@@ -34,11 +34,11 @@
 
     //姣忎釜绐楀彛鍒涘缓瀹屾垚鍚庤皟鐢�
     winCreateOK(opt, result) {
-      // this.grid_500.show = true;
-      // this.grid_1000.show = true;
-      // this.grid_3000.show = true;
-      // this.grid_5000.show = true;
-      // this.map.setCameraView(mars3d.global_variables.grid_camerview.grid5000);
+      this.grid_500.show = true;
+      this.grid_1000.show = true;
+      this.grid_3000.show = true;
+      this.grid_5000.show = true;
+      this.map.setCameraView(mars3d.global_variables.grid_camerview.grid5000);
       this.datatype = mars3d.global_variables.queryDataType;
       this.datatime = mars3d.global_variables.queryDataTStart;
     }
@@ -75,6 +75,11 @@
 
     //鎵撳紑婵�娲�
     activate() {
+      this.grid_500.show = false;
+      this.grid_1000.show = false;
+      this.grid_3000.show = false;
+      this.grid_5000.show = false;
+      
       this.heatmapGroupLayer.getLayers().forEach(layer => {
          layer.show= false;
       });

--
Gitblit v1.9.1