月球大数据地理空间分析展示平台-【前端】-月球2期前端
surprise
2023-10-26 f4a54f5d378fb194d4132de2668e5d85a255b8ff
src/assets/js/Map/server.js
@@ -159,7 +159,8 @@
        this.setAddWmtsLayer(res);
        break;
      case 3: //WMS
        this.setAddWmsLayer(res);
        // this.setAddWmsLayer(res);
        this.setAddGeoWmsLayer(res)
        break;
    }
  },
@@ -179,7 +180,8 @@
      case 0: //URL
        break;
      case 3: //WMS
        this.setAddWmsLayer(res);
        // this.setAddWmsLayer(res);
        this.setAddGeoWmsLayer(res)
        break;
      case 4: //WFS
        break;
@@ -315,6 +317,7 @@
  setAddWmsLayer(res) {
    
    var url = this.getLayrUrl(res);
    var img_layer = sgworld.Creator.createImageryProvider(
      "giserver",
      "wms",
@@ -441,6 +444,7 @@
  this.delLayer(res.id)
    var url = res.url;
    var that = this;
    var getFeatureInfoFormat = new SmartEarth.Cesium.GetFeatureInfoFormat(
      "html",
      null,
@@ -483,6 +487,7 @@
      "html",
      null,
      function (html) {
        that.getFeatureInfo(html);
      }
    );
@@ -513,7 +518,7 @@
  },
  getFeatureInfo(html) {
    store.state.details.showDetails = false;
    var start =
      html.indexOf('<caption class="featureInfo">') +
      '<caption class="featureInfo">'.length;
@@ -534,7 +539,7 @@
        break;
      }
    }
    if (!gindex) return;
    var str = html
      .substr(