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/widget.js |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

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