From 7b08b44e307d05c18d60687f039aaa196f75a745 Mon Sep 17 00:00:00 2001
From: qinbo <qinbo@shsening.com>
Date: 星期二, 07 十二月 2021 16:00:31 +0800
Subject: [PATCH] bug fix

---
 js/function.js |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/js/function.js b/js/function.js
index d106f86..0d23460 100644
--- a/js/function.js
+++ b/js/function.js
@@ -106,7 +106,8 @@
       layer.options.parameters.viewparams = "userid:" + mars3d.global_variables.userid + ";regiontype:" + layer.options.regiontype + ";datetime:" + mars3d.global_variables.queryDataTStartGeo
       layer.options.getFeatureInfoParameters.viewparams = "userid:" + mars3d.global_variables.userid + ";regiontype:" + layer.options.regiontype + ";datetime:" + mars3d.global_variables.queryDataTStartGeo
       layer.reload();
-    } else if ([layer.id] == 1001 && layer.options.show) {
+    // } else if ([layer.id] == 1001 && layer.options.show) {
+    } else if ([layer.id] == 1001) {
       var tmpguokong = map.getLayerById(1001);
       tmpguokong.clear(true);
       getGuokongPointFromServer(tmpguokong);
@@ -184,11 +185,3 @@
   }
 }
 
-function changeNullAndundefinedToEmpty(json_in) {
-  for (var key in json_in) {
-    if (json_in[key] == null || json_in[key] == 'null' || json_in[key] == undefined || json_in[key] == 'undefined') {
-      json_in[key] = "/";
-    }
-  }
-  return json_in;
-}
\ No newline at end of file

--
Gitblit v1.9.1