Question

I am using mapkit in my application.i want to show blue blob in mapview.i have set [mapview setShowUserLocation:YES]; but it doesn't showing blue blob.also it's cordinates are -180.0000,-180.0000? how is this happen? is there a bug in mapkit. i am not using location manager to show blue dot.i know that setting showuserlocation to yes will show the blue dot automatically.does someone know why blue blob having negative cordinates and how to solve this problem?

Was it helpful?

Solution

The blue blob isn't default, it's specifically for the Google Maps application. If you want your annotation to show something on the map, you need to provide an MKAnnotationView for it. MapKit comes with the MKPinAnnotationView for free, where you can select a red, green or purple pin. If you want anything else to appear, you will have to provide your own custom view and your own custom art.

OTHER TIPS

if (annotation == aMapView.userLocation) 
{
    return nil; // this might be the moment the location was first detected
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top