diff --git a/src/components/map/map-panel.tsx b/src/components/map/map-panel.tsx index 148186f..796cd5f 100644 --- a/src/components/map/map-panel.tsx +++ b/src/components/map/map-panel.tsx @@ -52,6 +52,7 @@ interface MapPanelProps { onResetFilters: () => void; resultsToggle?: { label: string; onClick: () => void } | null; onSelectPlace: (place: Place) => void; + focusId?: string | null; onLocated: (loc: LatLng) => void; onShare: () => void; @@ -82,6 +83,7 @@ export function MapPanel({ onResetFilters, resultsToggle, onSelectPlace, + focusId, onLocated, onShare, myPlaces, @@ -201,6 +203,7 @@ export function MapPanel({ onSuggest: () => setSuggestOpen(true), }} onSelect={onSelectPlace} + focusId={focusId} toggle={resultsToggle} /> diff --git a/src/components/map/places-map.tsx b/src/components/map/places-map.tsx index f337cfa..95450b4 100644 --- a/src/components/map/places-map.tsx +++ b/src/components/map/places-map.tsx @@ -320,6 +320,7 @@ export function PlacesMap({ places }: PlacesMapProps) { onResetFilters: () => setFilters({ types: [], city: null, query: "" }), resultsToggle, onSelectPlace: selectPlace, + focusId, onLocated, onShare: share, myPlaces: user diff --git a/src/components/map/results-list.tsx b/src/components/map/results-list.tsx index 4e4481f..a35efa8 100644 --- a/src/components/map/results-list.tsx +++ b/src/components/map/results-list.tsx @@ -24,6 +24,7 @@ interface ResultsListProps { onSuggest: () => void; }; onSelect: (place: Place) => void; + focusId?: string | null; /** Optional expand/collapse control (e.g. "Show all" for the nearest list). */ toggle?: { label: string; onClick: () => void } | null; } @@ -34,6 +35,7 @@ export function ResultsList({ rows, emptyState, onSelect, + focusId, toggle, }: ResultsListProps) { return ( @@ -83,7 +85,11 @@ export function ResultsList({