mapkit

iPhone current user location coordinates showing as (0,0)

I'm trying to get the users current latitude and longitude with this viewDidLoad method. The resulting map is correctly indicating the current location however the NSLog consistently shows: 2009-09-19 16:45:29.765 Mapper[671:207] user latitude = 0.000000 2009-09-19 16:45:29.772 Mapper[671:207] user longitude = 0.000000 Anyone know wh...

How can I determine a CLLocation or MKPlacemark from an address?

I've seen API documentation and demo after demo on how to do a reverse geocode - to get an address, given a Lat/Long location. I need to do the reverse. I'm assuming that this is already solved problem since Apple's MapKit API avoids it entirely. ...

Detect 2 fingers on screen on mapView MapKit

Hi, I try to detect the event on a mapview. I just need to detect zoom (double tap or 2 fingers on screen). I try to add a UIview layer that detect event, but if I add a layer, I lose the control on the map (http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects/1403063#1403063) T...

iPhone MKMapKit application randomly crashing

I'm writing an MKMapKit app that allows the user to drag around an annotation. Everything seems to work for the most part, but it crashes every now and then with the following message: 2009-09-27 12:34:18.903 iParkNow![7181:207] *** -[LBSGAddressComponent _mapkit_cache_heapTime]: unrecognized selector sent to instance 0x195320 2009-09-...

Image instead of a the default pin in iPhone's MapKit framework?

Is it possible to have our own image instead of the default pin in MapKit map on iPhone? I am working on an application which would show friends' locations much like Google Latitude and need to show image of friends at their locations. It is possible using the JavaScript Google Map but i want to know if someone can give some sample c...

UILabel instead of the default pin on MKMapView

Is it possible to have our own UILabel or some other type of text instead of the default pin in MapKit map on iPhone? ...

Issue with Annotation Views disappearing on double tap zoom

I've ran into a problem with annotation views in the MapKit on the iPhone. I manage to draw custom annotation views on the map - no problem there. I even manage to redraw them after dragging or zooming. However, there are cases where the redrawing does not work: an example would be double-tap zoom. I attach some code where I draw a few ...

Experience with MKMapView Rotation

I have an MKMapView that I am considering rotating in order to more conveniently display a series of Annotations to my users. As of now I am planning on simply rotating the entire view with a CGAffineTransform, but I wanted to know if anyone had any experience with MKMapView rotation. Are there any pitfalls or "gotchas" that you came...

how to use mapview in iphone?

i want to display a map using two location in which one updates continously.and also i want to show custom pin icon in map view ...

Using Mapkit to create a local searchable Map

Using MapKit as a base, I'm planning on adding a map to a project with 'local search' capabilities. I think 'local search' describes the feature I want to design into the map. Here is my vision. The map is displayed on the bottom half of a view. The user's current location is highlighted by default. When the user pushes the 'search' but...

How do i open Google Maps for directions using coordinates on the iphone

I am using UIMapView to display locations on the iPhone. I want to do a directions from current location to the location of interest, I don't think its possible using MapKit (but if it is please inform) So I will open either the Google Maps application or safari to display it. Can i do this by specifying co-ordinates from (current locat...

getting error when using mapkit in xcode?

'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (MKMapView)' i am getting this error.am i missed something.i don't know from where to add MApkit.framework first i tried with target->getInfo and then from the bottom + sign added framework but that did not wrked....

how to get Route directions between two points on a map to draw driving directions?

is there a way to use core location or google or some other api to provide two points on the map and get the resulting set of latitude/longitude pairs for the route? i have seen in this tutorial Drawing polyines or routes on a MKMapView that how to draw driving direction using core graphics...but in the sample code it has route.csv whic...

multiple callout button links

I would like make mapkit's callout's DetailDisclosure button to navigate to detailed page for each annotations. At this point I am reading annotations from .plist and I wonder how can I make there button to link to each others. - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(U...

Any hint about stretching MkAnnotationView?

Hi all, is there a way to stretch the bubble tha shows the details of an Annotation? I need to use an accessory view and thus modify the size of the bubble. Apparently it seems to be drawn in the lower layer and all views are drawn over it. Thank you! ...

Can I display a driving track between two points using the map kit ?

Did I understand correctly: Opening google maps from my App demands closing that App in order to display google maps App? e.g doing so: NSString* urlString = @"http://maps.google.com/maps?saddr=London+UK&daddr=Birmingham+UK"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString]]; will close my App? So how ca...

how to show default user location and a customized annonation view in map kit?

i am using map kit and showing customized annonation view.one is carImage and the another one is userImage(as current location of user).now i want to show current user location default which is provided by map kit.but unable to show it.how do i show blue circle+my car in map kit? ...

how to show mapkit blue dot(user's location) at desired location?

i am using map kit.i want to know that how we can get current user location.the mapkit shows blue dot at current user location.i want to do something like this.the user location is showed on map.i have button which on clicking again get the current user location and shows the blue dot there.do i need to use location manager.or just call ...

is MKMapView allocating its own location manager?

I'm not understanding if a MKMApView has its own Location Manager. From one side there is not any delegate method to handle the updating of position and so on. From the other side I can set to show userLocation and thus there must be a Location Manager allocated. Am I missing something? ...

what's the better strategy to store a set of MKAnnotations on file?

Is there a standardized way to persistence for MKAnnotations? ...