-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 모집 상세 페이지 지도위에 코스 나타내기 성공 #101
Conversation
const container = useRef<HTMLDivElement>(null); | ||
const map = useRef<kakao.maps.Map>(); | ||
const polyLineRef = useRef<kakao.maps.Polyline>(); | ||
const [path, setPath] = useState<kakao.maps.LatLng[]>([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showMap에서는 path를 state로 관리할 필요가 없는 것 같아요
const getLaMaByLatLng = (point: LatLng): kakao.maps.LatLng => { | ||
return new kakao.maps.LatLng(point.lat, point.lng); | ||
}; | ||
const DrawPath = useCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DrawPath()
-> drawPath()
setAuthor(response.userId); | ||
setMaxPpl(response.maxPpl); | ||
setCurrentPpl(response.currentPpl); | ||
setPath(JSON.parse(response.path)); | ||
setMiddlePoint(getMiddlePoint(JSON.parse(response.path))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const [recruit, setRecruit] = useState<Recruit>();
// ...
const response = await get(`/recruit/${id}`);
setRecruit(response);
// ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM:D
Feature
모집 상세 페이지 지도에 러닝 코스를 나타낸다.
사용자에게 대략적인 러닝 코스를 제공하기 위함
과정
결과 (스크린샷 등)
관련 issue 번호 (링크)
#82
테스트 방법
GET http://localhost:3000/recruit/1
Commit