From 22e94096654e3b818d360d5d2e39cd61179940aa Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期三, 06 十月 2021 22:30:32 +0800
Subject: [PATCH] 添加 getFeatureInfoParameters,点击查询时也传递参数

---
 js/function_1001.js |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/js/function_1001.js b/js/function_1001.js
index 2015633..3890c7a 100644
--- a/js/function_1001.js
+++ b/js/function_1001.js
@@ -20,14 +20,15 @@
       "styles": item.style_prefix + item.style_selected,
       "transparent": "true",
       "format": "image/png",
-      "viewparams": "userid:" + mars3d.global_variables.userid +";regiontype:" + item.regiontype + ";datatime:" + mars3d.global_variables.queryDataTStartGeo
+      "viewparams": "userid:" + mars3d.global_variables.userid +";regiontype:" + item.regiontype + ";datetime:" + mars3d.global_variables.queryDataTStartGeo
+    },
+    getFeatureInfoParameters: {
+      feature_count: 10,
+      "viewparams": "userid:" + mars3d.global_variables.userid +";regiontype:" + item.regiontype + ";datetime:" + mars3d.global_variables.queryDataTStartGeo
     },
     center: { "lat": 30.487351, "lng": 121.613269, "alt": 54033, "heading": 359, "pitch": -40 },
     noCenter: true,
     maxLength: 35000,
-    getFeatureInfoParameters: {
-      feature_count: 10
-    },
     //鍗曞嚮楂樹寒鍙婂叾鏍峰紡
     highlight: {
       type: "wallP",
@@ -44,6 +45,7 @@
     style_prefix: item.style_prefix,
     style_selected: item.style_selected,
     style_options: item.styleoptions,
+    regiontype:item.regiontype,
     flyTo: false
   });
   wmsLyer.bindPopup(bindPopupFunction);

--
Gitblit v1.9.1