[Fix] 지도에 상도시장이 즉시 보이도록 줌 축소#520
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the default zoom level in MapFragmentView.kt from 17.5 to 14.5 to adjust the initial map view. The reviewer suggests using LatLngBounds and CameraUpdate.fitBounds instead of a hardcoded zoom level to ensure the target area is consistently visible across various device screen sizes and resolutions.
| private const val DEFAULT_LATITUDE = 37.49517278813046 | ||
| private const val DEFAULT_LONGITUDE = 126.95661313346206 | ||
| private const val DEFAULT_ZOOM = 17.5 | ||
| private const val DEFAULT_ZOOM = 14.5 |
There was a problem hiding this comment.
상도시장이 화면에 즉시 보이도록 줌 레벨을 조정한 의도는 적절합니다. 다만, 고정된 줌 레벨(14.5)을 사용하면 기기의 화면 크기나 해상도에 따라 상도시장 영역이 화면에 다 들어오지 않거나, 반대로 너무 넓은 영역이 보일 수 있는 한계가 있습니다.
사용자 기기의 화면 크기에 관계없이 특정 영역(예: 숭실대학교와 상도시장을 모두 포함하는 영역)을 일관되게 보여주려면, LatLngBounds를 정의하고 CameraUpdate.fitBounds(bounds, padding)를 사용하여 카메라 위치를 설정하는 방식을 고려해 보시기 바랍니다. 이는 다양한 안드로이드 기기 환경에서 더 견고한 UX를 제공할 수 있는 방법입니다.
Summary
지도에 상도시장이 즉시 보이도록 DEFAULT_ZOOM를 14.5로 낮췄습니다
Describe your changes
Issue
To reviewers