上饶市警务平台后台管理前端
zhongrj
2025-01-21 c393f8b721c1e7f6ea65ff0f3ad3a47dce71cfbc
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() {