fix: remove leaflet liên kết trên bản đồ

This commit is contained in:
2026-06-19 10:34:03 +07:00
parent ef11309399
commit 36fbbb9386
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -399,8 +399,8 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin
</div>
</div>
<MapContainer center={currentCoords} zoom={13} className="h-full w-full" zoomControl={false}>
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<MapContainer center={currentCoords} zoom={13} className="h-full w-full" zoomControl={false} attributionControl={false}>
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" attribution="" />
<Marker position={currentCoords} />
<MapPicker center={currentCoords} onPick={handlePickLocation} />
</MapContainer>
+1 -1
View File
@@ -369,10 +369,10 @@ export const ExploreMap = ({ onBack, onLogout, user, onViewTour, onOpenMyPhotos
zoom={mapZoom}
className="h-full w-full"
preferCanvas={true}
attributionControl={false}
>
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='&copy; OpenStreetMap contributors'
/>
{/* Theo dõi di chuyển bản đồ */}
+4 -2
View File
@@ -1587,8 +1587,9 @@ export const TourDetailPage = ({
zoom={mapZoom}
className="h-full w-full"
preferCanvas={true}
attributionControl={false}
>
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" attribution="" />
{canEdit && !isPublicView && (
<>
<MapHoverTip canEdit={canEdit} />
@@ -2246,8 +2247,9 @@ export const TourDetailPage = ({
zoom={mapZoom}
className="h-full w-full"
preferCanvas={true}
attributionControl={false}
>
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" attribution="" />
<MapTourBounds locations={allLocations} />
<MapRotationHandler rotation={mapRotation} />
<RecenterUser position={userLocation} trigger={locateTrigger} />