@@ -185,11 +185,12 @@ class MissionFragment : Fragment(), MissionHandler {
185
185
}
186
186
else -> {
187
187
drawNowLocationLine(TMapPoint (userLocation.latitude, userLocation.longitude), TMapPoint (beforeLocation.latitude, beforeLocation.longitude))
188
- missionViewModel. personCurrentLocation = userLocation
188
+ personCurrentLocation = userLocation
189
189
if (tMap.isTracking) {
190
190
tMap.tMapView.setCenterPoint(userLocation.latitude, userLocation.longitude)
191
191
}
192
192
beforeLocation = userLocation
193
+ arriveDestination(userLocation.latitude, userLocation.longitude)
193
194
}
194
195
}
195
196
}
@@ -203,10 +204,11 @@ class MissionFragment : Fragment(), MissionHandler {
203
204
Marker .PERSON_MARKER_IMG ,
204
205
TMapPoint (nowLocation.latitude, nowLocation.longitude)
205
206
)
206
- missionViewModel. personCurrentLocation = nowLocation
207
+ personCurrentLocation = nowLocation
207
208
latitudes.add(nowLocation.latitude)
208
209
longitudes.add(nowLocation.longitude)
209
210
setRouteDetailFocus()
211
+ arriveDestination(nowLocation.latitude, nowLocation.longitude)
210
212
}
211
213
}
212
214
@@ -226,7 +228,6 @@ class MissionFragment : Fragment(), MissionHandler {
226
228
alarmSettingViewModel.getAlarm()
227
229
val linePoints = arrayListOf<TMapPoint >()
228
230
val walkInfo = alarmSettingViewModel.alarmItem.value?.routes?.first() as WalkRoute
229
- Log .d(" MissionWorker" , " route 그리기 ${alarmSettingViewModel.alarmItem.value?.routes?.first()} " )
230
231
tMap.drawWalkRoute(walkInfo, linePoints)
231
232
tMap.drawWalkLines(linePoints, Marker .WALK_LINE , Marker .WALK_LINE_COLOR )
232
233
0 commit comments