diff --git a/client/src/components/Map/MapViewGL.tsx b/client/src/components/Map/MapViewGL.tsx index 73f50f1c..e86f75ee 100644 --- a/client/src/components/Map/MapViewGL.tsx +++ b/client/src/components/Map/MapViewGL.tsx @@ -447,7 +447,7 @@ export function MapViewGL({ geometry: { type: 'LineString' as const, coordinates: seg.map(([lat, lng]) => [lng, lat]) }, })) src.setData({ type: 'FeatureCollection', features }) - }, [route]) + }, [route, mapReady]) // Travel times now live in the day sidebar (per-segment connectors), not on the map. @@ -470,7 +470,7 @@ export function MapViewGL({ } catch { return [] } }) src.setData({ type: 'FeatureCollection', features }) - }, [places]) + }, [places, mapReady]) // Reservation overlay — mirrors the Leaflet ReservationOverlay: great- // circle arcs for flights/cruises, straight lines for trains/cars,