[refactor] #65 네컷지도 관련 로직 개선#68
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ikseong00
reviewed
Jan 28, 2026
ikseong00
left a comment
Contributor
There was a problem hiding this comment.
ApplicationContext 를 주입받고 코드 자체는 깔끔해진 것 같습니다.
추후 2차 MVP 이후 리팩 우선순위로 두면 좋을 것 같습니다!
Screen_recording_20260128_234543.mp4
현재 위치에서 재검색 후, 칩이 계속 뜨는 현상이 있습니다!
Ojongseok
added a commit
that referenced
this pull request
May 25, 2026
[refactor] #65 네컷지도 관련 로직 개선
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 관련 이슈
📙 작업 설명
rememberCachedBrandImage에서 뷰모델에서 브랜드 조회 후 바로 비트맵으로 변환 후MapState에서 유지. 이후 ComposableMarker에서 MapState에 참조하여 사용하도록 변경했습니다.getFusedLocationProviderClient()를 통해 위치를 1회 조회하는LocationHelper오브젝트를 추가했습니다.📸 스크린샷 또는 시연 영상 (선택)
KakaoTalk_Video_2026-01-28-21-41-56.mp4
💬 추가 설명 or 리뷰 포인트 (선택)
FusedLocationProviderClient.getCurrentLocation()해당 함수로 위치를 한 번만 쉽게 읽어들일 수는 없더라구요! 해당 함수는 비동기로 위치를 조회하여 위치 조회가 완료되는 시점은 리스너 구현 없이는 알 수 없었습니다. 그래서 콜백 형태로MapViewModel에서 구현하여 1회 조회 시 바로 콜백을 취소해주었습니다.FusedLocationProviderClient로 위치를 조회하여 카메라를 이동시키는 방법이 첨부된 영상처럼 현위치를 조회하는데에 훨씬 빨랐습니다.-> 이전 PR 코멘트에 대한 답변입니다.
#60 (comment)
-> 이번 PR에서
onMapLoaded = { onIntent(MapIntent.RequestLocationPermission) }네이버지도를 로드하면 권한을 요청하여 권한 확인 이후의 플로우를 진행합니다.말씀하신대로
EnterMapScreen에서 호출하여 확인해보니 네트워크 상태가 느리거나 특히 지하철에서 지도가 로드되기 전 회색 배경에서 현위치로 이동한다거나 회색 배경인 상태에서 권한을 요청한다거나 오히려 어색해 보이는 현상이 있었습니다.그래서 권한 플로우가 과도하게 빠르지 않게 지도가 로드된 시점에 진행하도록 구현했습니다.
권한 및 카메라 이동 플로우 변경
네이버 지도 로드 -> 일단 권한 요청(
onIntent(MapIntent.RequestLocationPermission)) ->위 블럭에서 권한 분기 이후의 프로세스 진행(최초 위치 조회 및 카메라 이동, 사각형 포토부스 조회 등)
Summary by CodeRabbit
새로운 기능
위치 기반 기능 강화
성능 최적화
개선 사항
✏️ Tip: You can customize this high-level summary in your review settings.