Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ dependencies {
// Normal
implementation 'io.github.ParkSangGwon:tedpermission-normal:3.3.0'
//Location 라이브러리(현재위치)
implementation 'com.google.android.gms:play-services-location:17.1.0'
implementation 'com.google.android.gms:play-services-location:21.3.0'

implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation 'com.google.code.gson:gson:2.10.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,12 @@ class CourseMainFragment :
naverMap.maxZoom = 18.0
naverMap.minZoom = 10.0

map.locationSource = locationSource
naverMap.locationSource = locationSource

if (isLocationPermissionGranted()) {
map.locationTrackingMode = LocationTrackingMode.Follow //위치추적 모드 Follow
}

//네이버 맵 sdk에 위치 정보 제공
locationSource = FusedLocationSource(
this,
LOCATION_PERMISSION_REQUEST_CODE
)
naverMap.locationSource = locationSource

naverMap.addOnLocationChangeListener { location ->
currentLocation = LatLng(location.latitude, location.longitude)
map.locationOverlay.run { //현재 위치 마커
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<FrameLayout
android:id="@+id/fl_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@id/btm_navi_main"
app:layout_constraintTop_toTopOf="parent" />

Expand All @@ -37,7 +37,7 @@
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/btm_navi_main"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_height="wrap_content"
android:background="@drawable/radius_menu"
app:itemBackground="@color/transparent_00"
app:itemIconTint="@color/main_menu_color_selector"
Expand Down
Loading