diff --git a/Backend/Frontend/creative/src/component/bus-component/buslist/BusItem.tsx b/Backend/Frontend/creative/src/component/bus-component/buslist/BusItem.tsx index 9bbb85d..09b082d 100644 --- a/Backend/Frontend/creative/src/component/bus-component/buslist/BusItem.tsx +++ b/Backend/Frontend/creative/src/component/bus-component/buslist/BusItem.tsx @@ -21,6 +21,7 @@ const StyledBusItem = styled.li` } a { width: 100%; + height: 100%; display: flex; justify-content: space-between; align-items: center; @@ -60,14 +61,14 @@ const StyledBusItem = styled.li` color: #9c9c9c; } `; - +//https://map.naver.com/p/search/[버스번호]%EB%B2%88%EB%B2%84%EC%8A%A4?c=15.00,0,0,0,dh const BusItem = (props:any) => { const { busrouteid, busrouteAbrv, adirection, arrmsg1 } = props.items; - + console.log(props) return ( diff --git a/Backend/Frontend/creative/src/component/loding/Loding.css b/Backend/Frontend/creative/src/component/loding/Loding.css index e083c94..b57967f 100644 --- a/Backend/Frontend/creative/src/component/loding/Loding.css +++ b/Backend/Frontend/creative/src/component/loding/Loding.css @@ -1,4 +1,7 @@ .loding{ + position: fixed; + top:50%; + right: 45%; animation: rotate_image 6s linear infinite; z-index: 1000; } diff --git a/Backend/Frontend/creative/src/component/map/SubwayMapping.tsx b/Backend/Frontend/creative/src/component/map/SubwayMapping.tsx index f51a664..b5fba9e 100644 --- a/Backend/Frontend/creative/src/component/map/SubwayMapping.tsx +++ b/Backend/Frontend/creative/src/component/map/SubwayMapping.tsx @@ -26,10 +26,11 @@ const Mapping = () => { center: new window.kakao.maps.LatLng(y, x), level: 3, }; + console.log(marker) const map = new window.kakao.maps.Map(container, options); if (subwaymode) subwaymapcoordinate(marker, map) - },[tmX,tmY,subwaymode,position]) + },[tmX,tmY,subwaymode,position,marker]) const subwaymapcoordinate = (marker:any, map:any) => { const markerPosition = new window.kakao.maps.LatLng(parseFloat(String(marker.tmY - 0.0000005)).toFixed(6), parseFloat(String(marker.tmX - 0.0000005)).toFixed(6)) diff --git a/Backend/Frontend/creative/src/component/subway-component/subwaylist/SubwayList.tsx b/Backend/Frontend/creative/src/component/subway-component/subwaylist/SubwayList.tsx index 85cc5b5..e35d596 100644 --- a/Backend/Frontend/creative/src/component/subway-component/subwaylist/SubwayList.tsx +++ b/Backend/Frontend/creative/src/component/subway-component/subwaylist/SubwayList.tsx @@ -14,7 +14,7 @@ flex-direction:column; align-items: center; box-sizing: border-box; width: 100%; -max-height:36vh; +min-height:40vh; padding: 0; margin:0; z-index: 10; @@ -33,7 +33,7 @@ const SubwayList = (props:any) => { dispatch(MapActions.positioning(subway[0])); dispatch(MapActions.makerchacking(subway[0])); dispatch(SubwayActions.addSubwayInfo(subway)) - },[]) + },[subway]) return ( {subwayCheck && }