Browse Source

fix: 设置定位

bill 1 năm trước cách đây
mục cha
commit
ba60e4d2e0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);