From bf2c64b65c772d4b245154dabc4dfe005ff5a9f4 Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期三, 16 三月 2022 08:57:27 +0800
Subject: [PATCH] 重新打开监控网格,去除5000自动缩放地图视野

---
 widgetsTS/widget_grid/widget.js |   55 +++++++++++++++++++++++++++----------------------------
 1 files changed, 27 insertions(+), 28 deletions(-)

diff --git a/widgetsTS/widget_grid/widget.js b/widgetsTS/widget_grid/widget.js
index 3255ea5..07e79b4 100644
--- a/widgetsTS/widget_grid/widget.js
+++ b/widgetsTS/widget_grid/widget.js
@@ -24,41 +24,41 @@
       this.grid_5000 = this.map.getLayerById(3003);
       this.style_options = this.grid_1000.options.style_options;
       this.style_selected = this.grid_1000.options.style_selected;
-
+ 
       this.nodejs_url_predix = mars3d.global_variables.nodejs_url_predix;
       this.heatmapGroupLayer = new mars3d.layer.GroupLayer({ id: 5000, pid: 50, name: "", show: false });
       this.map.addLayer(this.heatmapGroupLayer);
     }
-
-
-
+ 
+ 
+ 
     //姣忎釜绐楀彛鍒涘缓瀹屾垚鍚庤皟鐢�
     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;
     }
-
+ 
     showGridmapLayers() {
       this.grid_500.show = true;
       this.grid_1000.show = true;
       this.grid_3000.show = true;
       this.grid_5000.show = true;
-
+ 
     }
-
+ 
     hideGridmapLayers() {
       this.grid_500.show = false;
       this.grid_1000.show = false;
       this.grid_3000.show = false;
       this.grid_5000.show = false;
-
+ 
     }
-
+ 
     showHeatmapLayers(){
       this.heatmapGroupLayer.show = true;
       this.heatmapGroupLayer.getLayers().forEach(layer => {
@@ -72,19 +72,18 @@
         layer.show= false;
       });
     }
-
+ 
     //鎵撳紑婵�娲�
     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;
+       layer.show= false;
       });
     }
-
+ 
     changeCamerView(gridlevel) {
       this.map.setCameraView(mars3d.global_variables.grid_camerview[gridlevel]);
     }
@@ -94,11 +93,11 @@
       //this.grid_1000.show = false;
       //this.grid_3000.show = false;
       //this.grid_5000.show = false;
-      // this.heatmapGroupLayer.getLayers().forEach(layer => {
+      //this.heatmapGroupLayer.getLayers().forEach(layer => {
       //  layer.show= false;
-      // });
+      //});
     }
-
+ 
     update_grid_style(new_style) {
       this.grid_500.options.parameters.styles = this.grid_500.options.style_prefix + new_style;
       this.grid_500.options.style_selected = new_style;
@@ -113,7 +112,7 @@
       this.grid_5000.options.style_selected = new_style;
       this.grid_5000.reload();
     }
-
+ 
     setHeatmapAlpha(value) {
       this.heatmapGroupLayer.getLayers().forEach(layer => {
         layer.opacity= value;
@@ -126,13 +125,13 @@
       this.grid_5000.opacity = value;
       
     }
-
-
-
+ 
+ 
+ 
   }
-
+ 
   //娉ㄥ唽鍒皐idget绠$悊鍣ㄤ腑銆�
   mars3d.widget.bindClass(MyWidget)
-
+ 
   //姣忎釜widet涔嬮棿閮芥槸鐩存帴寮曞叆鍒癷ndex.html涓紝浼氬瓨鍦ㄥ郊姝ゅ懡鍚嶅啿绐侊紝鎵�浠ラ棴鍖呭鐞嗕笅銆�
-})(window, mars3d)
\ No newline at end of file
+})(window, mars3d)

--
Gitblit v1.9.1