Ver código fonte

reactor:地图修改为3D;

zhangchong 1 ano atrás
pai
commit
8fbc2c0fdc
1 arquivos alterados com 6 adições e 12 exclusões
  1. 6 12
      src/views/home/center.map.ts

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

@@ -127,20 +127,14 @@ export const optionHandle = (regionCode: string,
         //         },
         //     },
         // ],
-        geo3D: {
-            show: false,
-            map: regionCode, // 自定义扩展图表类型
-            aspectScale: 1,
-            showLegendSymbol: true,
-            boxDepth: 100, //地图倾斜度
-            regionHeight: 4, //地图厚度
-            label: {
+        geo3D: [
+            {
                 show: false,
-            },
-            itemStyle: {
-                color: "rgba(32,155,252,.7)"
+                map: regionCode, // 自定义扩展图表类型
+                aspectScale: 1,
+                showLegendSymbol: true,
             }
-        },
+        ],
         series: [
             {
                 type: "map3D",