原始问题:
mapCoordinateList: [
CLLocationCoordinate2D]) -> MKPolyline {
let polyline = MKPolyline(coordinates: mapCoordinateList, count: mapCoordinateList.count)
return polyline
}
// Create an array of coordinates from an array of locations. Used to create a route line.
func getMapCoordinates(locationList: [CLLocation]) -> [CLLocationCoordinate2D] {
var mapCoordinates = [CLLocationCoordinate2D]()
for location in locationList {
let coordinate = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude)
map
Prev:canvas中我已有x和y轴的坐标数组,怎么匀速的让图片移动到数组的位置