From 2873b026197b9cbe137c0b227d7ad30f48853347 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Fri, 5 Dec 2025 13:55:00 -0500 Subject: [PATCH] refactor: remove unused point projection calculation in Map component --- src/components/Map.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Map.tsx b/src/components/Map.tsx index f2939e0..5a77205 100644 --- a/src/components/Map.tsx +++ b/src/components/Map.tsx @@ -65,7 +65,7 @@ const MapController = ({ selectedShop, isDiscoveryOpen }: { selectedShop: Coffee const targetLng = selectedShop.lng; // Calculate offset if discovery panel is open and we're on desktop - let flyToOption = { + const flyToOption = { duration: 1.5, easeLinearity: 0.25, }; @@ -80,9 +80,6 @@ const MapController = ({ selectedShop, isDiscoveryOpen }: { selectedShop: Coffee // Get current zoom const zoom = 16; - // Project the lat/lng to point - const point = map.project([targetLat, targetLng], zoom); - // Subtract offset (shift 'center' to the left, which moves 'view' to the right? Wait.) // If we want the point to be at x + 200 (screen coords relative to center), // we need the map center to be at x - 200 relative to point.