Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pulsating blue circle and dot in mapkit - iPhone SDK

Tags:

iphone

How can I add the "Pulsating blue circle" in my gps application. Currently i am fetching my current location by CCLocationManager.

I am using mapView.showsUserLocation = True, but this only display a pin at my current location.

How can i get that "blue circle" as in the default maps app.

update: many app does this. for example - Realtor.com

Thanks

like image 593
Saurabh Avatar asked Jan 23 '23 03:01

Saurabh


1 Answers

Implement the delegate method:

- (MKAnnotationView *)mapView:(MKMapView *)mv viewForAnnotation: (id<MKAnnotation>)annotation

and return nil if if (annotation == mv.userLocation). This tell the MKMapView to use whatever standard annotation it deems appropriate.

like image 149
drewh Avatar answered Jan 29 '23 01:01

drewh