diff --git a/app-9xzmfic2e4g1/src/components/trip/Map.tsx b/app-9xzmfic2e4g1/src/components/trip/Map.tsx index c018b7a..f35dab0 100644 --- a/app-9xzmfic2e4g1/src/components/trip/Map.tsx +++ b/app-9xzmfic2e4g1/src/components/trip/Map.tsx @@ -250,7 +250,6 @@ export function TripMap({ itinerary, activePlaceId, onMarkerClick, onAddPlace }: polylinesRef.current = []; const bounds = new google.maps.LatLngBounds(); - const infoWindow = new google.maps.InfoWindow(); itinerary.days.forEach((day, dayIndex) => { const dayColor = DAY_COLORS[dayIndex % DAY_COLORS.length]; @@ -282,22 +281,8 @@ export function TripMap({ itinerary, activePlaceId, onMarkerClick, onAddPlace }: marker.addListener('click', () => { onMarkerClick(item.place_id); - const photoUrl = item.photo_reference - ? (item.photo_reference.startsWith('http') ? item.photo_reference : api.getPhotoUrl(item.photo_reference)) - : ''; - infoWindow.setContent(` -
- ${photoUrl ? `` : ''} -

${item.name}

-

${item.category}

-
- ★ ${item.rating || 'N/A'} - Yol Tarifi → -
-
- `); - infoWindow.open(googleMap, marker); + // Sağ panel (PlaceDetail) zaten activePlaceId üzerinden açılıyor + // InfoWindow kaldırıldı - tek tutarlı UI için }); markersRef.current[item.place_id] = { marker, dayIndex };