fix: remove leaflet liên kết trên bản đồ
This commit is contained in:
@@ -399,8 +399,8 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<MapContainer center={currentCoords} zoom={13} className="h-full w-full" zoomControl={false}>
|
<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" />
|
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" attribution="" />
|
||||||
<Marker position={currentCoords} />
|
<Marker position={currentCoords} />
|
||||||
<MapPicker center={currentCoords} onPick={handlePickLocation} />
|
<MapPicker center={currentCoords} onPick={handlePickLocation} />
|
||||||
</MapContainer>
|
</MapContainer>
|
||||||
|
|||||||
@@ -369,10 +369,10 @@ export const ExploreMap = ({ onBack, onLogout, user, onViewTour, onOpenMyPhotos
|
|||||||
zoom={mapZoom}
|
zoom={mapZoom}
|
||||||
className="h-full w-full"
|
className="h-full w-full"
|
||||||
preferCanvas={true}
|
preferCanvas={true}
|
||||||
|
attributionControl={false}
|
||||||
>
|
>
|
||||||
<TileLayer
|
<TileLayer
|
||||||
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||||
attribution='© OpenStreetMap contributors'
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Theo dõi di chuyển bản đồ */}
|
{/* Theo dõi di chuyển bản đồ */}
|
||||||
|
|||||||
@@ -1587,8 +1587,9 @@ export const TourDetailPage = ({
|
|||||||
zoom={mapZoom}
|
zoom={mapZoom}
|
||||||
className="h-full w-full"
|
className="h-full w-full"
|
||||||
preferCanvas={true}
|
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 && (
|
{canEdit && !isPublicView && (
|
||||||
<>
|
<>
|
||||||
<MapHoverTip canEdit={canEdit} />
|
<MapHoverTip canEdit={canEdit} />
|
||||||
@@ -2246,8 +2247,9 @@ export const TourDetailPage = ({
|
|||||||
zoom={mapZoom}
|
zoom={mapZoom}
|
||||||
className="h-full w-full"
|
className="h-full w-full"
|
||||||
preferCanvas={true}
|
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} />
|
<MapTourBounds locations={allLocations} />
|
||||||
<MapRotationHandler rotation={mapRotation} />
|
<MapRotationHandler rotation={mapRotation} />
|
||||||
<RecenterUser position={userLocation} trigger={locateTrigger} />
|
<RecenterUser position={userLocation} trigger={locateTrigger} />
|
||||||
|
|||||||
Reference in New Issue
Block a user