How do i get an MKAnnotationView's coords?
I have a method like this: - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control Using this, can i get the coordinates? ...
I have a method like this: - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control Using this, can i get the coordinates? ...
Here is my question: When I am trying to set the zoom level of my map, I is zooming to a different level than I requested. Here is the code I am using: MKCoordinateRegion cRegion = MKCoordinateRegionMake (myMapView.userLocation.coordinate, MKCoordinateSpanMake(.001, .0001)); MKCo...
Edited to Add * I haven't found a solution for this one yet, can anyone please help? My problem is similar to this but the answer posted doesn't t work for me - http://stackoverflow.com/questions/1190270/mkmapview-refresh-after-pin-moves *End Edit I have a search enabled map view. When user hits search, my custom annotations are added t...
Hi everyone, im trying to implement some behaviors when a mapview element scrolls... by coding a delegate for the scrollview inside of a mapview. so, right now, i got a pointer to the scroll view used by the map view in my code. however, i wish to set the delegate of this scroll view inside the map view, but the issue is that the ...
In the Apple documentation for the -regionThatFits: method of the MKMapView, it says that this will return a new region centered on the same point as the region that's passed in, only with the regions bounds corrected for the iPhone screen aspect ratio. This seems to be incorrect in implementation...before the call to this method, my re...
i used self.mapView.showsUserLocation = YES; for showing blue dot (circle) on MKmapview. Its working fine in simulator. but when i tested in Ipod, its not showing. Anybody know what will be the reason ? thanks in advance ...
Basically I want to show the users location plus a list of selected location on a map. It can even have the standard iphone annotations. But, I have no idea of the general steps I would take to achieve this. Would I use MKMapView, or Core Location, or both? Could someone give me a simple outline of steps to take, or a link to a good tuto...
i want to create a custom callout bubble on MKMapView. But i want to create the call out bubble in the same manner of default bubble. So how to create a View look like annotaion in this image I want a custom custom view which look like "Parked Location" annotaion in the following image. with custom width, height etc. P I am not able t...
Hi there! We have a MKmapView with a bunch of Image Annotation where each Image annotation responds to touch by overriding these methods of AnnotationView subclass: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event Our map region is updated using [Mk...
Is it possible to display a View controller with further details of the Map annotation on a new view controller which when popped returns back to the MKMap view with the annotations still on it at that position. I can't seem to find a way in the SDK documentation that seems to indicate that its possible. ...
In my viewForAnnotation delegate, I create a MKAnnotationView with leftCalloutaccessory as a info button. When the info button is tapped, I want to replace it with a UIActivityIndicator. So in the calloutAccessoryTapped delegate, I wrote view.leftCalloutaccessoryView = [UIActivityIndicator indicatorWithStyle:UIActivityIndicatorWhite]; T...
If i want to show userLocation on the map, and at the same time record the user's location, is it a good idea to add an observer to userLocation.location and record the locations, OR should i still use CLLocationManager for recording user location and use mapView.showUserLocation to show the user's current location (blue indicator)? I wa...
How can i check if a pin is in viewable region of the map (MKMapView)? ...
Hi there- think I may need an iPhone guru with some math skills for this one. I have two map views on one page, call them map A and map B. When the user updates map A, map B gets updated automatically, and vice-versa... Where it gets tricky is that when the user updates map A (drag/swipe/zoom), I need map B to update so that the coord...
I would like to put a UIActivityIndicator in the center of my UIMapView. I have setup plenty of spinners before, but not sure what I'm missing about the MapView that is making this difficult. The real issue seems to be that when I try to place the UIActivityIndicator onto the UIMapView in Interface Builder, it doesn't stick or it break...
Hi, In my application I have to search five nearest locations of "medical services" using the user current location and annotate those locations on my MKMapView. Can any one tell me how to search with a particular keyword (eg. medical services, garages) by using user current locations and annotate onto the map and when the user taps on...
I have a MKMapView (also a UIPopoverControllerDelegate) with Annotations. This MapView has, in the MKTestMapView.h file, a UIPopoverController* popoverController defined in the @interface and a @property (nonatomic, retain) UIPopoverController* popoverController; defined outside of the @interface section. This controller is @synthesize...
I am creating a MKMapView in a method named "generateMap". From inside viewDidLoad, this works: [self generateMap]; but this causes the map to quickly load and then disappear, leaving only the blank grey grid: [NSThread detachNewThreadSelector:@selector(generateMap) toTarget:self withObject:nil]; Any ideas why this might be happeni...
I'm using following conditions in-order to make sure that the location i get has adequate accuracy, In my case kCLLocationAccuracyBest. But the problem is that i still get inaccurate location. // Filter out nil locations if(!newLocation) return; // Make sure that the location returned has the desired accuracy if(newLocation.horizon...
I have a MKMapView within a UITableviewCell and I want to be able to disable scrolling of the table view when the user starts to drag within the map view. My plan had been to override the MKMapView touchesBegan/Moved etc methods and if they were called to then disable scrolling in the parent view. Scrolling in the parent view would be ...