派生自 wuyushui/SewerAndRainNetwork

ChenZeping
2021-05-08 3ec2e48009c84474ead34a82713ccc8c46f05d26
src/components/LayerController/service/WmsLayerService.js
@@ -76,9 +76,6 @@
  clickListener () {
    window.map.on('click', (e) => {
      if (!window.layerFactory.clickSwitch) {
        return
      }
      this.featureGroup.clearLayers()
      var point = this.map.latLngToContainerPoint(e.latlng, this.map.getZoom())
      var size = this.map.getSize()
@@ -134,15 +131,18 @@
                autoClose: false
              })
              .openPopup() */
            window.$layer.open({
              content: {
                content: Popup, // 组件
                data: { // 传递的参数
                  datas: popupDatas
                }
              },
              title: '' // 标题
            })
            if (window.layerFactory.clickSwitch) {
              window.$layer.open({
                content: {
                  content: Popup, // 组件
                  data: { // 传递的参数
                    datas: popupDatas
                  }
                },
                title: '' // 标题
              })
            }
            // this.popupComp.setDatas(popupDatas)
            // this.popupComp.setShow()
          }