派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-14 6f256a8be5c330cbf4d852f7dc4a1a6614f0419d
src/components/panel/topicSearch/SewersSearch.vue
@@ -128,11 +128,13 @@
      wfsHelper.addLike('name', this.form.keyword)
      // const _this = this
      const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {})
      console.log(res)
      if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) {
        this.list = res.features
      }
    },
    handleLocation (val) {
      console.log(val)
      const bound = this.L.geoJSON([val], {}).getBounds()
      // var layer = window.layerFactory.flyByLayerId(val.id, bound)
      window.map.flyToBounds(bound)