派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-08 f99fd37cdbaaa4f09e5b7383442ee264fd332232
新增图层点击弹窗开关
2个文件已修改
4 ■■■■ 已修改文件
src/components/LayerController/service/LayerFactory.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/WmsLayerService.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/LayerFactory.js
@@ -17,6 +17,7 @@
    this.layersLogic = {}
    this.minZoomLayers = {}
    this.wmsLayers = []
    this.clickSwitch = false
  }
  init (layerConfig) {
src/components/LayerController/service/WmsLayerService.js
@@ -76,6 +76,9 @@
  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()