Hi all,
I'm using MKMapView, and drawing polylines for routes.
Now I want to pull coordinates from an external API where I only get latitude and longitude based on provided 'ID'.
I'm adding pins like :
How can I update this specific pin ? i.e. 5 minutes later, without clearing all pins and duplicating this pin, but on other location. (preventing trails of pins from the team's route)
I'm using MKMapView, and drawing polylines for routes.
Now I want to pull coordinates from an external API where I only get latitude and longitude based on provided 'ID'.
I'm adding pins like :
Code:
CLLocationCoordinate2D tCoord = CLLocationCoordinate2DMake(latitude,longitude);
MKPointAnnotation *tPin = [[MKPointAnnotation alloc] init];
CLLocationCoordinate2D pinCoords = tCoord;
[tPin setCoordinate: pinCoords];
[tPin setTitle: [NSString stringWithFormat: @"%@", teamID]];
[mapper addAnnotation: tPin];
How can I update this specific pin ? i.e. 5 minutes later, without clearing all pins and duplicating this pin, but on other location. (preventing trails of pins from the team's route)