Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove or edit user location blue pulsing circle

I'm trying to change the radius and color of the blushing blue circle that's created around a current user's location a MapKit? After searching for answers I found an old question Change User Location Blue Pulsing Circle Radius but the answer is an old objective-C service that costs money. Is there anything new in swift that would make this task easier, or is there a way to just remove the pulsing blue circle all together

like image 510
bdc Avatar asked Dec 26 '15 21:12

bdc


People also ask

What does the blue circle on someone's location mean?

The blue dot shows you where you are on the map. When Google Maps isn't sure about your location, you'll see a light blue circle around the blue dot. You might be anywhere within the light blue circle. The smaller the circle, the more certain the app is about your location.

How do I remove the blue circle on Google Maps?

The way to remove the blue circle is to open Security and Privacy in System Preferences. Location Services: click unlock at bottom of window and then deselect Maps. The blue circle goes away. Just press it to turn the button grey (like in that screenshot), so the blue circle around your location will disappear.

What does the blue circle mean on Google Maps?

To make orienting yourself even easier in Google Maps for Android, we've replaced the direction arrow on your blue dot with a shining blue beam — think of it as a flashlight guiding your travels. The beam also tells you how accurate your phone's direction is at any given time.

What does the light blue circle mean on location iPhone?

On your iPhone or iPad, open the Google Maps app . The blue dot on the map will show your location. If there isn't a blue dot, go to the bottom right and tap Your location .


1 Answers

The blue color for the user location is based on the tint color of your map view, changing this will set the new color for the user location circle.

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

//Swift
mapView.tintColor = redColor() 

If you wish to remove or replace the user location circle with something different you can change the didAnnotation delegate method.

-(void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
{
    MKAnnotationView *usrLoc = [mapView viewForAnnotation:mapView.userLocation];
    usrLoc.hidden = YES;
}
like image 53
Ivan Le Hjelmeland Avatar answered Sep 28 '22 14:09

Ivan Le Hjelmeland