wangzhibo
2021-10-06 22e94096654e3b818d360d5d2e39cd61179940aa
添加 getFeatureInfoParameters,点击查询时也传递参数
1个文件已修改
10 ■■■■■ 已修改文件
js/function_1001.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);