Pulsating blue circle and dot in mapkit - iPhone SDK

How can I add a "pulsating blue circle" in my gps application. I am currently collecting my current location using CCLocationManager.

I use mapView.showsUserLocation = True, but this only shows the output at my current location.

How can I get this "blue circle" as in the default map application.

update: many applications do this. e.g. Realtor.com

thanks

+4
source share
2 answers

Implement delegate method:

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

and return nil if if (annotation == mv.userLocation) . This tells MKMapView use any standard annotation that it considers appropriate.

+8
source
 if (annotation == Current Location){ return nil; }else{ } 
+1
source

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


All Articles