File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed
presentation/src/main/java/com/stop/ui/mission Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class MissionFragment : Fragment(), MissionHandler {
210
210
val linePoints = arrayListOf<TMapPoint >()
211
211
val walkInfo = alarmSettingViewModel.alarmItem.value?.routes?.first() as WalkRoute
212
212
Log .d(" MissionWorker" , " route 그리기 ${alarmSettingViewModel.alarmItem.value?.routes?.first()} " )
213
- drawWalkRoute(walkInfo, linePoints)
213
+ tMap. drawWalkRoute(walkInfo, linePoints)
214
214
tMap.drawWalkLines(linePoints, Marker .WALK_LINE , Marker .WALK_LINE_COLOR )
215
215
216
216
missionViewModel.destination.value = walkInfo.end
@@ -229,17 +229,6 @@ class MissionFragment : Fragment(), MissionHandler {
229
229
tMap.longitudes.add(longitude)
230
230
}
231
231
232
-
233
- private fun drawWalkRoute (route : WalkRoute , linePoints : ArrayList <TMapPoint >) {
234
- route.steps.forEach { step ->
235
- step.lineString.split(" " ).forEach { coordinate ->
236
- val points = coordinate.split(" ," )
237
-
238
- linePoints.add(TMapPoint (points.last().toDouble(), points.first().toDouble()))
239
- }
240
- }
241
- }
242
-
243
232
companion object {
244
233
245
234
private const val PLUS = " +"
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.stop.ui.mission
3
3
import android.content.Context
4
4
import com.skt.tmap.TMapPoint
5
5
import com.skt.tmap.overlay.TMapPolyLine
6
+ import com.stop.domain.model.route.tmap.custom.WalkRoute
6
7
import com.stop.ui.util.TMap
7
8
8
9
class MissionTMap (
@@ -28,4 +29,13 @@ class MissionTMap(
28
29
tMapView.addTMapPolyLine(polyLine)
29
30
}
30
31
32
+ fun drawWalkRoute (route : WalkRoute , linePoints : ArrayList <TMapPoint >) {
33
+ route.steps.forEach { step ->
34
+ step.lineString.split(" " ).forEach { coordinate ->
35
+ val points = coordinate.split(" ," )
36
+
37
+ linePoints.add(TMapPoint (points.last().toDouble(), points.first().toDouble()))
38
+ }
39
+ }
40
+ }
31
41
}
You can’t perform that action at this time.
0 commit comments