派生自 wuyushui/SewerAndRainNetwork

ChenZeping02609
2021-05-13 1e114a012e2abab1162ab8004f86694834f07449
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)
  }