From 0e0177ec4ca46615cafcbbbd1f2c8912df6ef8ca Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期二, 15 三月 2022 11:30:38 +0800
Subject: [PATCH] 重新打开监控网格,清除热力图

---
 widgetsTS/widget_grid/widget.js |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/widgetsTS/widget_grid/widget.js b/widgetsTS/widget_grid/widget.js
index f7ada14..ef50789 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,7 +75,9 @@
 
     //鎵撳紑婵�娲�
     activate() {
-
+      this.heatmapGroupLayer.getLayers().forEach(layer => {
+         layer.show= false;
+      });
     }
 
     changeCamerView(gridlevel) {
@@ -87,9 +89,9 @@
       //this.grid_1000.show = false;
       //this.grid_3000.show = false;
       //this.grid_5000.show = false;
-      this.heatmapGroupLayer.getLayers().forEach(layer => {
-       layer.show= false;
-      });
+      // this.heatmapGroupLayer.getLayers().forEach(layer => {
+      //  layer.show= false;
+      // });
     }
 
     update_grid_style(new_style) {

--
Gitblit v1.9.1