I have a tracing tool, which checks whether the car reaches some predefined locations.
Currently, when the car reaches location, I use MKPointAnnotation and add a pin at that location. However, I don't want pin. I want a dot.
Is there a way to achieve it? Below is the code that adds pin.
- (void) addPin:(NSArray *)locations
{
self.location = [locations lastObject];
self.locationCoordinate2D = self.location.coordinate;
MKPointAnnotation *newAnnotation = [[MKPointAnnotation alloc]init];
newAnnotation.coordinate = self.locationCoordinate2D;
[mapView addAnnotation:newAnnotation];
}
Thanks in advance.