派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-08 b3f8766818e3a8c235b648a7c406353673e76d52
修改图层点击弹窗开关
1个文件已修改
24 ■■■■ 已修改文件
src/components/LayerController/service/WmsLayerService.js 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()
          }