Explorar o código

fix: 设置定位

bill hai 1 ano
pai
achega
ba60e4d2e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/view/map/polygons.vue

+ 1 - 1
src/view/map/polygons.vue

@@ -107,7 +107,7 @@ const selectChange = (id: string) => {
       if (points.length) {
         const total = points.reduce((t, p) => [t[0] + p.x, t[1] + p.y], [0, 0]);
         const view = mapManage.map.getView();
-        view.setZoom(20);
+        // view.setZoom(20);
         setTimeout(() => {
           view.setCenter([total[0] / points.length, total[1] / points.length]);
         }, 100);