I'm able to draw GMSPolyline on GoogleMaps with array of locations like this
GMSMutablePath *path = [GMSMutablePath path];
for (int i = 0; i <anotherArray.count; i++) {
NSString *string1 = [anotherArray2 objectAtIndex:i];
NSString *string2 = [anotherArray objectAtIndex:i];
[path addCoordinate:CLLocationCoordinate2DMake(string1.doubleValue,string2.doubleValue)];
}
GMSPolyline *rectangle = [GMSPolyline polylineWithPath:path];
rectangle.strokeColor = [UIColor blueColor];
rectangle.map = mapView_;
rectangle.strokeWidth = 2.0f;
But the locations I'm getting from backend server.
So I have to refresh every 10 seconds,getting new locations and adding it to existing path. These are all working fine.
But when I am adding new locations to existing path is moving very fast.
Cause I have a GMSMarker at starting of path and it is looking like jumping from one place to another place.
So how can I animate GMSMarker like slowly moving from one place to another place?