+
+ {dates.map((_, i) => (
+
+ ))}
+
+
+ {journeys[activeDay].places.map((place, j) => (
+
+
+
+ ))}
+
+
+ );
+};
+
+export default RouteMapSlide;
diff --git a/src/components/Route/RouteTabPanel/RouteTabPanel.module.scss b/src/components/Route/RouteTabPanel/RouteTabPanel.module.scss
index 35a5f7fe..dea14daf 100644
--- a/src/components/Route/RouteTabPanel/RouteTabPanel.module.scss
+++ b/src/components/Route/RouteTabPanel/RouteTabPanel.module.scss
@@ -1,4 +1,4 @@
-@use "@/sass" as *;
+@use '@/sass' as *;
.panelContainer {
-ms-overflow-style: none;
@@ -16,6 +16,13 @@
height: 16rem;
}
+ .zoomInbutton {
+ position: absolute;
+ top: 16rem;
+ right: 2rem;
+ z-index: 10;
+ }
+
.routeContainer {
.journeysContainer {
display: flex;
diff --git a/src/components/Route/RouteTabPanel/RouteTabPanel.tsx b/src/components/Route/RouteTabPanel/RouteTabPanel.tsx
index aa8d4c47..4115798d 100644
--- a/src/components/Route/RouteTabPanel/RouteTabPanel.tsx
+++ b/src/components/Route/RouteTabPanel/RouteTabPanel.tsx
@@ -1,32 +1,37 @@
-import styles from "./RouteTabPanel.module.scss";
+import {useNavigate} from 'react-router-dom';
-import DayNavigationBar from "../DayNavigationBar/DayNavigationBar";
-import DayRoute from "../DayRoute/DayRoute";
-import EmptyDate from "../EmptyDate/EmptyDate";
-import MapInTrip from "../MapInTrip/MapInTrip";
+import styles from './RouteTabPanel.module.scss';
-import { DateItem, MapInTripProps } from "@/types/route";
+import ZoomInIcon from '@/assets/icons/zoomIn.svg?react';
+import {getSpaceId} from '@/utils/getSpaceId';
-function RouteTabPanel({ mapRef, center }: MapInTripProps) {
+import DayNavigationBar from '../DayNavigationBar/DayNavigationBar';
+import DayRoute from '../DayRoute/DayRoute';
+import EmptyDate from '../EmptyDate/EmptyDate';
+import MapInTrip from '../MapInTrip/MapInTrip';
+
+import {DateItem, MapInTripProps} from '@/types/route';
+
+function RouteTabPanel({mapRef, center}: MapInTripProps) {
const data = {
journeys: [
{
id: 0,
- date: "2024-01-16",
+ date: '2024-01-16',
places: [
{
id: 0,
Order: 0,
place: {
id: 0,
- title: "씨티 호텔",
+ title: '씨티 호텔',
thumbnail:
- "https://images.trvl-media.com/lodging/28000000/27440000/27434200/27434198/cb31822f.jpg?impolicy=resizecrop&rw=1200&ra=fit",
- address: "강원도 강릉시",
- addressDetail: "교동광장로 112",
+ 'https://images.trvl-media.com/lodging/28000000/27440000/27434200/27434198/cb31822f.jpg?impolicy=resizecrop&rw=1200&ra=fit',
+ address: '강원도 강릉시',
+ addressDetail: '교동광장로 112',
latitude: 37.76437082535426,
longitude: 128.87675285339355,
- category: "숙소",
+ category: '숙소',
},
},
{
@@ -34,14 +39,14 @@ function RouteTabPanel({ mapRef, center }: MapInTripProps) {
Order: 1,
place: {
id: 1,
- title: "동화가든",
+ title: '동화가든',
thumbnail:
- "https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2FMjAyMzEyMjRfMjgg%2FMDAxNzAzMzk1OTQ3NzIx.PD8Sif-ZdTdc9tugl9qh9Izb91v0tK_OD1IJPvgVEbAg.oc9JBSNBPc6WjsJOFhCcXXBoG2Qg318fhOveoAyqbvog.JPEG.rhwpgus90%2FIMG_3224.JPG",
- address: "강원도 강릉시",
- addressDetail: "초당순두부길77번길 15",
+ 'https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2FMjAyMzEyMjRfMjgg%2FMDAxNzAzMzk1OTQ3NzIx.PD8Sif-ZdTdc9tugl9qh9Izb91v0tK_OD1IJPvgVEbAg.oc9JBSNBPc6WjsJOFhCcXXBoG2Qg318fhOveoAyqbvog.JPEG.rhwpgus90%2FIMG_3224.JPG',
+ address: '강원도 강릉시',
+ addressDetail: '초당순두부길77번길 15',
latitude: 37.7911054,
longitude: 128.9149116,
- category: "맛집",
+ category: '맛집',
},
},
{
@@ -49,35 +54,35 @@ function RouteTabPanel({ mapRef, center }: MapInTripProps) {
Order: 2,
place: {
id: 2,
- title: "테라로사",
+ title: '테라로사',
thumbnail:
- "https://search.pstatic.net/common/?src=https%3A%2F%2Fldb-phinf.pstatic.net%2F20200422_278%2F1587531042172TgXbr_JPEG%2FV-ta0vOWwlwKQkmnI-B9s7ja.jpg",
- address: "강원도 강릉시",
- addressDetail: "구정면 현천길 7",
+ 'https://search.pstatic.net/common/?src=https%3A%2F%2Fldb-phinf.pstatic.net%2F20200422_278%2F1587531042172TgXbr_JPEG%2FV-ta0vOWwlwKQkmnI-B9s7ja.jpg',
+ address: '강원도 강릉시',
+ addressDetail: '구정면 현천길 7',
latitude: 37.6964635,
longitude: 128.890664,
- category: "카페",
+ category: '카페',
},
},
],
},
{
id: 1,
- date: "2024-01-17",
+ date: '2024-01-17',
places: [
{
id: 3,
Order: 0,
place: {
id: 3,
- title: "안목해변",
+ title: '안목해변',
thumbnail:
- "https://search.pstatic.net/common/?src=https%3A%2F%2Fldb-phinf.pstatic.net%2F20190130_26%2F1548818549792K262M_JPEG%2FyOtLXHFaaCdCC6c9frIgwJTB.jpeg.jpg",
- address: "강원도 강릉시",
- addressDetail: "창해로14번길 20-1",
+ 'https://search.pstatic.net/common/?src=https%3A%2F%2Fldb-phinf.pstatic.net%2F20190130_26%2F1548818549792K262M_JPEG%2FyOtLXHFaaCdCC6c9frIgwJTB.jpeg.jpg',
+ address: '강원도 강릉시',
+ addressDetail: '창해로14번길 20-1',
latitude: 37.7725926,
longitude: 128.9473204,
- category: "관광",
+ category: '관광',
},
},
{
@@ -85,14 +90,14 @@ function RouteTabPanel({ mapRef, center }: MapInTripProps) {
Order: 1,
place: {
id: 4,
- title: "카페오션스강릉버거",
+ title: '카페오션스강릉버거',
thumbnail:
- "https://search.pstatic.net/common/?src=https%3A%2F%2Fldb-phinf.pstatic.net%2F20240102_48%2F17041673424734KIm1_JPEG%2F%25B0%25AD%25B8%25AA_%25B8%25C0%25C1%25FD_%25286%2529.jpg",
- address: "강원도 강릉시",
- addressDetail: "해안로 355",
+ 'https://search.pstatic.net/common/?src=https%3A%2F%2Fldb-phinf.pstatic.net%2F20240102_48%2F17041673424734KIm1_JPEG%2F%25B0%25AD%25B8%25AA_%25B8%25C0%25C1%25FD_%25286%2529.jpg',
+ address: '강원도 강릉시',
+ addressDetail: '해안로 355',
latitude: 37.8952651,
longitude: 128.8292485,
- category: "맛집",
+ category: '맛집',
},
},
],
@@ -100,6 +105,9 @@ function RouteTabPanel({ mapRef, center }: MapInTripProps) {
],
};
+ const navigate = useNavigate();
+ const spaceId = getSpaceId();
+
if (!data.journeys || data.journeys.length === 0) {
return