Sửa đổi dữ liệu của hệ thống theo ARCHITECTURE.md
This commit is contained in:
+3
-3
@@ -87,15 +87,15 @@ export const ExploreMap = ({ onBack, onLogout, user }: { onBack: () => void, onL
|
||||
<RecenterMap position={userPos} />
|
||||
|
||||
{publicTours.map((tour) => {
|
||||
const place = tour.legs?.[0]?.places?.[0];
|
||||
if (!place) return null;
|
||||
const location = tour.legs?.[0]?.locations?.[0];
|
||||
if (!location) return null;
|
||||
|
||||
const tourImage = tour.photos?.[0]?.imageUrl || `https://picsum.photos/seed/${tour.id}/200/200`;
|
||||
|
||||
return (
|
||||
<Marker
|
||||
key={tour.id}
|
||||
position={[place.latitude, place.longitude]}
|
||||
position={[location.latitude, location.longitude]}
|
||||
icon={L.divIcon({
|
||||
className: 'custom-bubble',
|
||||
html: `
|
||||
|
||||
Reference in New Issue
Block a user