Delete or change user location blue pulsating circle

Am I trying to change the radius and color of a reddened blue circle created around the current location of a MapKit user? After searching for the answers, I found the old question Change user location of Blue Pulsing Circle Radius , but the answer is an old objective-C service that costs money. Is there anything new in quick that will make the task easier, or is there a way to just remove the pulsating blue circle together

+5
source share
2 answers

The blue color for the user's location is based on the hue color of your map view, and this will change the new color for the user's circle.

//Objective-C mapView.tintColor = [UIColor redColor]; //Swift mapView.tintColor = redColor() 

If you want to remove or replace the user's location circle with something else, you can change the didAnnotation delegation method.

 -(void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views { MKAnnotationView *usrLoc = [mapView viewForAnnotation:mapView.userLocation]; usrLoc.hidden = YES; } 
+7
source

You cannot change the radius, since it represents GPS accuracy.

+1
source

Source: https://habr.com/ru/post/1239264/


All Articles