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

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

diff --git a/js/function.js b/js/function.js
index 186bf88..553ab68 100644
--- a/js/function.js
+++ b/js/function.js
@@ -84,7 +84,8 @@
 
     if ([layer.type] == 'wms') {
       layer.options.layers = "konglu_58:" + layer.options.geoname_prefix + mars3d.global_variables.queryDataType;
-      layer.options.parameters.viewparams = "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStartGeo;
+      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) {
       var tmpguokong = map.getLayerById(1001);

--
Gitblit v1.9.1