派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-13 e46c7f58112c13ed09b325bf164f0d2a440f1012
src/components/LayerController/service/LayerFactory.js
@@ -36,7 +36,7 @@
        var childLayer = config.childLayer
        var checked = config.checked
        /* if (config.groupName) {
          const wmsGroupLayerService = new WmsGroupLayerService(config)
          const wmsGroupLayerService = new WmsLayerGroupService(config)
          wmsGroupLayerService.init()
          continue
        } */
@@ -193,8 +193,10 @@
        point = lineString[parseInt(lineString.length / 2)][0]
        break
    }
    console.log(point)
    window.map.flyTo(point.reverse(), 17)
    if (point.length > 2) {
      point.splice(2, 1)
    }
    window.map.setView(point.reverse(), 17)
    code && this.openPopup(code, feature.id)
  }