wenhongquan 3 lat temu
rodzic
commit
cca97980ce
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 1 1
      .env.zwy
  2. 3 1
      src/components/MarkerMap/index.tsx

+ 1 - 1
.env.zwy

@@ -6,6 +6,6 @@ VITE_API_SERVER = 'http://10.11.230.150:30009'
 VITE_MAP_SERVER = 'http://10.11.230.152:21009'
 VITE_LOGIN_SERVER = 'http://10.11.230.150:30010'
 VITE_DH_SERVER = 'http://sqtestdh.xt.wenhq.top:8083'
-VITE_SP_USER = 'huashe1'
+VITE_SP_USER = 'huashe2'
 VITE_MAP_KEY = '63b68d77877a4ed686e8bc30894975e5'
 VITE_MAP_SOLUTION = '222525'

+ 3 - 1
src/components/MarkerMap/index.tsx

@@ -919,7 +919,9 @@ export default defineComponent({
       );
       state.positions.push(...markers.map((i) => i.locations).filter(isString));
 
+      
       handleFitBounds();
+      state.map?.setZoom(11);
     };
     const handleFitBounds = () => {
       if (state.positions.length === 0) {
@@ -1187,7 +1189,7 @@ export default defineComponent({
           } else {
             state.map?.flyTo({
               center: [118.29564, 33.97441],
-              zoom: 12,
+              zoom: 11,
               bearing: 10,
               pitch: 30,
               duration: 2000,