From 01b3b11bc589dbd3023a6741ebdf8f9db27e03f6 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Fri, 22 Nov 2024 10:00:28 +0800 Subject: [PATCH] fix(global): turf spacing --- app/(main)/ClientComponents/Global.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(main)/ClientComponents/Global.tsx b/app/(main)/ClientComponents/Global.tsx index ba6c3b8..384bdc1 100644 --- a/app/(main)/ClientComponents/Global.tsx +++ b/app/(main)/ClientComponents/Global.tsx @@ -49,7 +49,7 @@ export async function Global({ countries = [] }: GlobalProps) { turf.bbox({ type: "Polygon", coordinates: polygon }), ); - const spacing = 10; // 单位为千米 + const spacing = 20; // 单位为千米 const options = { units: "kilometers" }; bboxList.forEach((bbox: any) => { @@ -82,7 +82,7 @@ export async function Global({ countries = [] }: GlobalProps) { // 获取国家的边界框 const bbox = turf.bbox(feature); - const spacing = 10; // 单位为千米,值越小点越密集 + const spacing = 20; // 单位为千米,值越小点越密集 const options = { units: "kilometers" }; // @ts-expect-error ignore const pointGrid = turf.pointGrid(bbox, spacing, options);