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

reactor:大屏新增泸州环境变量和泸州地图数据;

zhangchong 7 сар өмнө
parent
commit
e943c5fd3d

+ 6 - 5
src/views/home/center.map.ts

@@ -11,10 +11,11 @@ console.log(themeConfig.value);
 const layoutSize = computed(() => {
   switch (themeConfig.value.appScope) {
     case "YiBin":
+      return "118%";
     case "ZiGong":
-      return "180%";
+      return "140%";
     case "LuZhou":
-      return "145%";
+      return "120%";
   }
 });
 export const optionHandle = (regionCode: string, list: object[]) => {
@@ -111,7 +112,7 @@ export const optionHandle = (regionCode: string, list: object[]) => {
         show: true,
         map: regionCode,
         roam: false,
-        zoom: 0.65,
+        zoom: 1,
         aspectScale: 1,
         label: {
           show: false,
@@ -146,7 +147,7 @@ export const optionHandle = (regionCode: string, list: object[]) => {
         type: "map",
         map: regionCode,
         aspectScale: 1,
-        zoom: 0.65,
+        zoom: 1,
         layoutCenter: ["50%", "54%"],
         layoutSize: layoutSize,
         roam: false,
@@ -174,7 +175,7 @@ export const optionHandle = (regionCode: string, list: object[]) => {
         type: "map",
         map: regionCode, // 自定义扩展图表类型
         aspectScale: 1,
-        zoom: 0.65,
+        zoom: 1,
         showLegendSymbol: true,
         boxDepth: 120, //地图倾斜度
         regionHeight: 3, //地图厚度