From e5e2d2b02dcf4f64d82519ce7a7cae4208857c97 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Thu, 21 Nov 2024 15:38:41 +0800 Subject: [PATCH] fix(global): remove dev map code --- app/(main)/ClientComponents/GlobalGen.tsx | 37 ----------------------- 1 file changed, 37 deletions(-) delete mode 100644 app/(main)/ClientComponents/GlobalGen.tsx diff --git a/app/(main)/ClientComponents/GlobalGen.tsx b/app/(main)/ClientComponents/GlobalGen.tsx deleted file mode 100644 index dbd18f1..0000000 --- a/app/(main)/ClientComponents/GlobalGen.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { devGeoString } from "@/lib/dev-geo"; -import DottedMap, { getMapJSON } from "dotted-map"; - -export default function GlobalGen() { - const devGeoJson = JSON.parse(devGeoString); - const geoList = devGeoJson.features - .filter((x: any) => x.id !== "ATA") // 添加这一行来过滤掉南极洲 - .map((x: any) => { - return x.id; - }); - console.log(geoList); - - const mapString = getMapJSON({ - height: 150, - countries: geoList, // look into `countries.geo.json` to see which keys to use. You can also omit this parameter and the whole world will be used - grid: "diagonal", // how points should be aligned - }); - - // const finalMap = map.getSVG({ - // radius: 0.35, - // color: "#D1D5DA", - // shape: "circle", - // }); - - // const mapJsonString = getMapJSON({ height: 60, grid: 'diagonal' }); - console.log(mapString); - - return ( - //
- // World Map with Highlighted Countries - //
- null - ); -}