diff --git a/frontend/src/pages/ExploreMap.tsx b/frontend/src/pages/ExploreMap.tsx index 7101aa0..e24d6b7 100644 --- a/frontend/src/pages/ExploreMap.tsx +++ b/frontend/src/pages/ExploreMap.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { MapContainer, TileLayer, Marker, Popup, useMap, useMapEvents } from 'react-leaflet'; +import { MapContainer, TileLayer, Marker, Popup, useMap, useMapEvents, Tooltip } from 'react-leaflet'; import _MarkerClusterGroup from 'react-leaflet-cluster'; const MarkerClusterGroup = (_MarkerClusterGroup as any).default || _MarkerClusterGroup; import L from 'leaflet'; @@ -165,28 +165,39 @@ export const ExploreMap = ({ onBack, onLogout, user, onViewTour }: { onBack: () : userPos; return ( - onViewTour(tour.id) - }} - icon={L.divIcon({ - className: 'custom-bubble', - html: ` -
-
- -
-
- S -
+ onViewTour(tour.id) + }} + icon={L.divIcon({ + className: 'custom-bubble', + html: ` +
+
+
- `, - iconSize: [48, 48], - iconAnchor: [24, 24] - })} - /> +
+ S +
+
+ `, + iconSize: [48, 48], + iconAnchor: [24, 24] + })} + > + +
+
{tour.title}
+ {tour.description && ( +
+ {tour.description} +
+ )} +
+
+
); })}