Skip to content

Commit

Permalink
🎨 여정 내 Spot Coordinate들도 Polyline에 표시되도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yoondj98 committed Dec 11, 2023
1 parent 57bf215 commit 91d67c7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ public final class MapViewController: UIViewController {
CLLocationCoordinate2D(latitude: $0.latitude,
longitude: $0.longitude)
}
await self.drawPolylineToMap(using: coordinates)
let spotCoordinates = journey.spots.map {
CLLocationCoordinate2D(latitude: $0.coordinate.latitude,
longitude: $0.coordinate.longitude)
}
await self.drawPolylineToMap(using: coordinates+spotCoordinates)
}
}
}
Expand Down

0 comments on commit 91d67c7

Please sign in to comment.