[AUD-39] 인포창 바깥쪽 클릭 시 인포창 사라지는 기능 구현 #26
Merged
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.
📃 변경사항
e
에서event
로 변경infoWindows
배열을 하나의 객체만 저장하는 형태로 변경removeInfoWindow
를 실행했는데, infoWindow 변수가 null이 아닐 때만removeInfoWindow
를 실행시키도록 변경handleMapClick
함수에서 infoWindow가 null이 아닐 경우에 infoWindow를 null로 바꾸고 return하도록 수정 (주요 변경사항)removeInfoWindow
메서드에서setMap(null)
이외에 infoWindow 변수 자체를 null로 바꾸는 로직 추기🎇 동작 화면
2024-01-30.2.29.37.mov