Lin Qilong 1 개월 전
부모
커밋
3ccc872c23
3개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 1
      ruoyi-ui/src/views/map/components/map.vue
  2. 1 1
      ruoyi-ui/src/views/map/hooks/popupContent.js
  3. 7 7
      ruoyi-ui/src/views/map/index.vue

+ 1 - 1
ruoyi-ui/src/views/map/components/map.vue

@@ -1324,7 +1324,7 @@ watch(() => props.config, async (config) => {
   if (config) {
     // 渲染配置
     // 1. 跳转中心点
-    // toCenter(config.center, config.zoom);
+    toCenter(config.center, config.zoom);
     // 渲染图层
     await loadLayers(config.layers);
   }

+ 1 - 1
ruoyi-ui/src/views/map/hooks/popupContent.js

@@ -151,7 +151,7 @@ async function loadPopupChartByHPJ(properties) {
         "url": "http://localhost:8081/hpj_api/swzz/SWZZ_MODE_DD_SOLUTION/MODE_BDMS_PREDICTSel",
         "method": "POST",
         "body": [
-            {"id": 1, "key": "SOLUTIONID", "value": "20251101102203557131", "type": "", "title": ""},
+            {"id": 1, "key": "SOLUTIONID", "value": "20251203101329185168", "type": "", "title": ""},
             {"id": 2, "key": "STCD", "value": properties['测站编码'], "type": "", "title": ""},
         ],
         "headers": [

+ 7 - 7
ruoyi-ui/src/views/map/index.vue

@@ -121,8 +121,8 @@ const maps = {
     ]
   },
   "26": {
-    zoom: 11,
-    center: [121.52720881780915, 31.297834087410234],
+    zoom: 11.88,
+    center: [121.55256966639084, 31.31062241723985],
     layers: [
       {
         id: 'weather-stations',
@@ -211,8 +211,8 @@ const maps = {
     ]
   },
   "27": {
-    zoom: 10,
-    center: [121.49574023547144, 31.084153451834073],
+    zoom: 11.11,
+    center: [121.5060272448065, 31.140056454529834],
     layers: [
       {
         id: 'weather-stations',
@@ -307,8 +307,8 @@ const maps = {
     ]
   },
   "29": {
-    zoom: 11,
-    center: [121.52720881780915, 31.297834087410234],
+    zoom: 13.82,
+    center: [121.53935402005882, 31.364348593001697],
     layers: [
       {
         id: 'weather-stations',
@@ -427,7 +427,7 @@ const maps = {
                 },
                 style: {
                   fill: {color: '#eabc5f'},
-                   stroke: {color: '#E19F1A', width: 2}
+                  stroke: {color: '#E19F1A', width: 2}
                 }
               },
               {