ソースを参照

[Mod 0000] 为地图添加更多固定标点位置信息

houzekong 2 ヶ月 前
コミット
5e49267626
1 ファイル変更22 行追加3 行削除
  1. 22 3
      src/api/sys/map.ts

+ 22 - 3
src/api/sys/map.ts

@@ -64,6 +64,27 @@ export function getGeoJSON(params: any) {
   };
 
   const positionPresets = new Map([
+    [
+      '陕西局',
+      {
+        x: '35.83317',
+        y: '109.425873',
+      },
+    ],
+    [
+      '地方监管',
+      {
+        x: '35.83317',
+        y: '109.425873',
+      },
+    ],
+    [
+      '陕西省(集团)',
+      {
+        x: '35.83317',
+        y: '109.425873',
+      },
+    ],
     [
       '执法一处',
       {
@@ -155,7 +176,7 @@ export function getGeoJSON(params: any) {
         element.latitude = parseFloat(element.latitude);
         element.fillColor = getAlarmColor(element.alarmLevel);
         // 地图缩放等级
-        element.zoom = 1;
+        element.zoom = 8;
 
         map.set(element.deptId, element);
       }
@@ -223,8 +244,6 @@ export function getGeoJSON(params: any) {
       })),
     };
 
-    console.log('debug rrr', markers);
-
     return [geojson, records, markers];
   });
 }