派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-19 05719f44398f5316fe0853e957d88c77079f3e0b
修改点击事件开关
2个文件已修改
6 ■■■■■ 已修改文件
src/components/helpers/LocateHelper.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/helpers/MapManager.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/helpers/LocateHelper.js
@@ -47,7 +47,7 @@
  if (type === 'Point') {
    var point = feature.geometry.coordinates
    point = [point[1], point[0]]
    window.map.setView(point, 17)
    window.map.setView(point, 19)
  } else {
    window.map.fitBounds(window.L.geoJSON(feature).getBounds())
  }
src/components/helpers/MapManager.js
@@ -30,7 +30,9 @@
      this.loadWfsDatas(e.latlng).then((res) => {
        if (res.features.length > 0) {
          highlight(res.features[0])
          openPropsPopup(e.latlng, res.features)
          if (this.clickDialogSwitch) {
            openPropsPopup(e.latlng, res.features)
          }
        }
      })
    })