From 27af07ebd073ca84740a73b4278e82bf9bc6ac51 Mon Sep 17 00:00:00 2001 From: Justin Hill Date: Sat, 3 Jan 2026 11:42:02 -0500 Subject: [PATCH 1/3] Fix coordinate input output format - Fix viewport update to correctly destructure [lat, lng] from parsed coordinates - Ensures latitude and longitude are correctly assigned when updating viewport --- src/components/CoordinateInput.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CoordinateInput.jsx b/src/components/CoordinateInput.jsx index b084a6d..c9a6d5c 100644 --- a/src/components/CoordinateInput.jsx +++ b/src/components/CoordinateInput.jsx @@ -36,7 +36,7 @@ const CoordinateInput = () => { if (parsedCoordinates.length > 0) { dispatch(updatePoints(parsedCoordinates)); - const [firstLng, firstLat] = parsedCoordinates[0]; + const [firstLat, firstLng] = parsedCoordinates[0]; console.log('Updating viewport to:', { latitude: firstLat, longitude: firstLng, From fa23002c6b94c52ef771015b7136e9bffe3321a6 Mon Sep 17 00:00:00 2001 From: Justin Hill Date: Sat, 3 Jan 2026 11:47:56 -0500 Subject: [PATCH 2/3] Update coordinate return format to [lng, lat] - Change return format from [lat, lng] to [lng, lat] to match expected coordinate format for mapbox --- src/components/CoordinateInput.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CoordinateInput.jsx b/src/components/CoordinateInput.jsx index c9a6d5c..096117e 100644 --- a/src/components/CoordinateInput.jsx +++ b/src/components/CoordinateInput.jsx @@ -28,7 +28,7 @@ const CoordinateInput = () => { console.error(`Invalid coordinate: ${line}`); return null; } - return [lat, lng]; + return [lng, lat]; }) .filter(coord => coord !== null); From 82fd002d1e3038f61f80f7f0cc5634b7777bcdf2 Mon Sep 17 00:00:00 2001 From: Justin Hill Date: Sat, 3 Jan 2026 11:50:17 -0500 Subject: [PATCH 3/3] Fix viewport update to match [lng, lat] coordinate format - Update destructuring to [firstLng, firstLat] to match new return format --- src/components/CoordinateInput.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CoordinateInput.jsx b/src/components/CoordinateInput.jsx index 096117e..e2ce5a6 100644 --- a/src/components/CoordinateInput.jsx +++ b/src/components/CoordinateInput.jsx @@ -36,7 +36,7 @@ const CoordinateInput = () => { if (parsedCoordinates.length > 0) { dispatch(updatePoints(parsedCoordinates)); - const [firstLat, firstLng] = parsedCoordinates[0]; + const [firstLng, firstLat] = parsedCoordinates[0]; console.log('Updating viewport to:', { latitude: firstLat, longitude: firstLng,