-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 특정 줌 레벨까지 마커의 크기를 줄여서 보여주는 기능을 구현한다 (#830)
* chore: @googlemaps/markerclusterer 패키지 설치 [#157] * feat: 마커 클러스터링 기능 추가 [#157] * refactor: 불필요한 console.log 삭제 [#157] * refactor: 클러스터링 제거하고 점 마커 도입 - 임시로 데모 만들어본 것입니다. 추후 제거할 가능성이 높습니다. [#157] * refactor: 작은 마커 디자인 추가 [#157] * refactor: 줌 레벨 16에서의 마커를 점 형태에서 기본 마커 형식을 유지한 작은 마커로 수정 [#157] * comment: 사용하지 않는 주석 제거 [#157] * refactor: 줌 레벨 17 이상일 경우 CarffeineMarker가 렌더링 되도록 수정 - 아직 줌레벨을 실시간으로 트래킹해 17 이상인지 여부를 판별하고 있지 않으므로 재요청이 발생한 경우에만 마커가 다르게 찍히고 있습니다. [#157] * refactor: 불필요한 코드 삭제 [#157] * refactor: 줌레벨, 마커 크기 비율 상수화 [#157] * refactor: zoom 상태에 따른 부수적인 동작 제거 - 각 상태에 따라 렌더링 되는 컴포넌트에 역할 위임 [#157] * refactor: 줌 레벨이 17 이상일 경우 카페인 마커가 렌더링 되도록 수정 - zoom state에 max 추가 - max가 추가됨에 따라 변경이 필요한 컴포넌트들 수정 - zoom state의 변화에 따라 카페인 마커가 렌더링 되는 기능 구현 - zoom state가 high, max인 경우에 HighZoomMarkerContainer 컴포넌트 마운트 - MaxZoomMarkerContainer를 만들려 했으나 HighZoomMarkerContainer와 공유하는 값들이 많아 일단 보류 [#157] * refactor: 중복되는 로직 함수 분리 - zoom state에 따라 CarffeineMarker, DefaultMarker를 선택해 렌더링하는 로직이 두 군데에서 사용되고 있어 이 부분을 함수로 분리해주었습니다. [#157] * chore: 사용하지 않는 패키지 제거 [#157] * refactor: 사용하지 않는 store 제거 [#157] * refactor: 하드코딩 된 마커 색상 값 상수 활용하도록 수정 [#157] * refactor: 마커 인스턴스 네이밍 변경 [#157] * fix: 메서드명 변경에 따른 오류 수정 [#157] * fix: 빌드 오류 수정 [#157]
- Loading branch information
Showing
15 changed files
with
136 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
1 change: 1 addition & 0 deletions
1
frontend/src/components/google-maps/marker/HighZoomMarkerContainer/constants/index.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const DEFAULT_MARKER_SIZE_RATIO = 0.5; |
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
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
13 changes: 13 additions & 0 deletions
13
...src/components/google-maps/marker/MiddleZoomMarkerContainer/MiddleZoomMarkerContainer.tsx
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
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
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
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
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
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
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
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
Oops, something went wrong.