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
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.
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.
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.
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 .
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;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With