Эх сурвалжийг харах

Merge branch 'feat_map' of United_Software/k_online_ui into dev

Jack Zhou 9 сар өмнө
parent
commit
94aba57ddc

+ 1 - 1
src/views/Tracking/src/components/TrackingDetail/src/components/MapView.vue

@@ -283,7 +283,7 @@ const setCenterAndZoom = () => {
   if (viewData.value.length > 0) {
     // 根据标记的位置设置中心点以及缩放级别
     const bounds = L.latLngBounds(viewData.value)
-    map!.fitBounds(bounds, { paddingTopLeft: [20, 70], paddingBottomRight: [0, 0] })
+    map!.fitBounds(bounds, { paddingTopLeft: [20, 90], paddingBottomRight: [0, 30] })
 
     setTimeout(() => {
       if (isFirstRender) {