Skip to content

Commit

Permalink
feat: 버스 네이버 지도 연결 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KyuTae98 committed Dec 12, 2023
1 parent 27882a4 commit d56eefc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const StyledBusItem = styled.li`
}
a {
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
Expand Down Expand Up @@ -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 (
<StyledBusItem>
<a
href={`https://map.naver.com/v5/search/${busrouteAbrv}번버스/bus-route/${busrouteid}?c=0,0`}
href={`https://map.naver.com/p/search/${busrouteAbrv}%EB%B2%88%EB%B2%84%EC%8A%A4?c=15.00,0,0,0,dh`}
target="_blank"
rel="noreferrer"
>
Expand Down

0 comments on commit d56eefc

Please sign in to comment.