From 627d292d8678f43bcb07551a86ddbc99c1eefa29 Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Thu, 19 Feb 2026 17:16:07 +0800 Subject: [PATCH] style(project): format delivery geojson parser --- .../views/store/delivery/composables/delivery-page/geojson.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/store/delivery/composables/delivery-page/geojson.ts b/apps/web-antd/src/views/store/delivery/composables/delivery-page/geojson.ts index 46f1daa..e7e39af 100644 --- a/apps/web-antd/src/views/store/delivery/composables/delivery-page/geojson.ts +++ b/apps/web-antd/src/views/store/delivery/composables/delivery-page/geojson.ts @@ -82,7 +82,9 @@ export function parsePolygonGeoJson(raw: string) { const outerRing = coordinates[0]; if (!Array.isArray(outerRing)) continue; - const points = outerRing.filter((point) => isLngLatTuple(point)) as LngLatTuple[]; + const points = outerRing.filter((point) => + isLngLatTuple(point), + ) as LngLatTuple[]; if (points.length >= 4) { polygons.push(points.map(([lng, lat]) => [lng, lat])); }