-
Notifications
You must be signed in to change notification settings - Fork 1
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
[AUD-77] 마커 클러스터링 기능 구현 #46
Merged
Merged
Conversation
This file contains 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
9cc8e84
to
77ed6fd
Compare
- 스타일 미적용
22d1041
to
9e899a0
Compare
RookieAND
approved these changes
Feb 25, 2024
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.
성능 이슈는 우선 출시가 얼마 남지 않았으나 과감하게 제끼고, 클러스터링 컴포넌트 스타일링만 Framer 에 맞춰서 수정 부탁드립니다.
@RookieAND 성능 최적화 부분은 아까 이야기한대로 일단은 미뤄두고 나중에 다시 보는걸로 해요 |
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.
📃 변경사항
🫨 고민한 부분
원래는 tmap vector v3를 raster v2로 마이그레이션하려 했으나 조금 해보니 상당히 많은 것이 틀어지는 바람에.. 그냥 클러스터링 기능을 직접 구현하는 쪽으로 방향을 틀었습니다.
클러스터링을 어떻게 구현해야 할 지 고민이 많았습니다....
특히 가장 고민이 많았던 부분은 어떤 기준을 가지고 마커들을 클러스터링할지였습니다.
위경도
를 기준으로 기존의 클러스터와 새로운 마커가일정 거리
이상으로 가까워지면 클러스터링되도록 하려했고, 그일정 거리
를 줌 레벨에 따라 조정하도록 했습니다.화면상 픽셀
로 변환하고, 픽셀 기준으로 마커의 크기인 50px보다 가까워지면 클러스터링되도록 했습니다.그리고 현재 사용자가 줌을 할 때마다 clusterMarkers가 실행되도록 하고 있는데, 조금 비효율적인 것 같기도 하고요...
🎇 동작 화면
2024-02-24.3.49.49.mov
💫 기타사항
진짜 이거 머리 싸매고 진짜 진짜 한참을 붙들고 있었습니다... 그래도 해결되어서 다행이네요 ㅜ
🎶🥁🎶 탱요틱탁 🎶🥁🎶 팅드로 동다락 딕닥택 팅트로 동다락 딕닥택 (어-!) 🎶🥁🎶 🎶🥁🎶 탱요틱탁 🎶🥁🎶 팅드로 동다락 딕닥택 팅트로 동다락 딕닥택 (어-!) 🎶 🎶🥁🎶 탱요틱탁 🎶🥁🎶 팅드로 동다락 딕닥택 팅트로 동다락 딕닥택 (어-!) 🎶🥁🎶 🎶🥁🎶 탱요틱탁 🎶🥁🎶 팅드로 동다락 딕닥택 팅트로 동다락 딕닥택 (어-!) 🎶