上饶市警务平台后台管理前端
guoshilong
2023-02-14 4f3b3c4d2fcc27c59095e6ddded35a572000e8ee
src/components/map/searchMapBox.vue
@@ -337,6 +337,16 @@
      if (routeRange.startsWith("POINT")) {
        this.addPoint(routeRange)
      }
    },
    setView(point){
      let view = this.map.getView()
      let center = [point.lng,point.lat]
      view.setZoom(20)
      view.animate({
        center: center,
        duration: 5,
      })
    }
  },
  mounted() {