我知道不同位置的gps,我怎么能创建这个动画?我尝试将gps转换为偏移,但我失败了。所以,谁能给我一点解决问题,谢谢
GMSPolyline *polyline = [[GMSPolyline alloc] init];
GMSMutablePath *path = [GMSMutablePath path];
[path addCoordinate:kSanLiTun];
[path addCoordinate:kLongZe];
[path addCoordinate:kJinTai];
polyline.path = path;
polyline.strokeColor = [UIColor redColor];
polyline.strokeWidth = 2.f;
polyline.zIndex = 15; // above the larger geodesic line
polyline.map = self.mapView;
这段代码从location.i想要创建动画可以使图片在线上移动