Questions tagged [mkmapviewdelegate]

MKMapViewDelegate is a protocol that describes events originating from an MKMapView.

MKMapViewDelegate is a protocol that describes events originating from an MKMapView. Interested classes can get messages for changes to the map's annotations, overlays, visible region, and user location updates.

For more information, see the Apple Documentation for MKMapViewDelegate.

160 questions
0
votes
1 answer

How manage when several annotations has similar or the same coordinates and want to show them?

I have an app (iPhone) that uses MapKit and users can create things on the map (annotations in the remote database, with latitude and longitude). Problem is that very often users put things in the same building, very close, even in the same…
Ricardo
  • 2,831
  • 4
  • 29
  • 42
0
votes
1 answer

Make MKMapView only zoom in on the centerCoordinate?

I have a MKPinAnnotationView that is always in the center of the map. When panning and zooming the pin gives me the center coordinates (lat/long) of the map. Currently when you zoom in, it just zooms into wherever your directing the map to zoom…
Jordan Brown
  • 293
  • 1
  • 4
  • 16
0
votes
1 answer

Map custom annotation is not showing in device

I am changing my pin annotation view by this code: -(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id)annotation { if([annotation isKindOfClass:[MKUserLocation class]]) return nil; static NSString…
0
votes
1 answer

rendererForOverlay not being called.... after update from MKOverlayView to MKOverlayRenderer

I have a working extention of MKOverlayView class with the mapview delegate triggering and executing the – mapView:viewForOverlay: delegate method perfectly. So to move away from a deprecated class, I have changed my extention of MKOverlayView to…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
0
votes
0 answers

iOS MKMapView "Error Could not determine nearby locations"

I'm implement a MKMapView app and it works fine but I'm getting this error every time I install the app on my device for testing. on the console I don't see any errors it all. any of you knows why of the error or how can this be fix? I'll really…
HelenaM
  • 1,807
  • 6
  • 30
  • 41
0
votes
2 answers

Marking a location in a MKMapView

I'm trying to mark a location in a map view. First I implemented the MKAnnotation protocol in a separate class like this. AddressAnnotation.h #import #import @interface AddressAnnotation : NSObject…
Isuru
  • 30,617
  • 60
  • 187
  • 303
0
votes
2 answers

MKMapView will not zoom out

I am centering a map around the user's location or alternatively around a default location with a zoom level of roughly 30 miles. The problem is I can zoom in but cannot zoom out. Whenever I try to zoom out on my iPhone 5C, the map immediately…
PhillipOReilly
  • 609
  • 12
  • 28
0
votes
1 answer

Detect whether map has been scrolled or not in mapview

How can I detect whether map has been scrolled or not in mkmapview in ios. The delegate method of map is not getting called. please help..
Programming Learner
  • 4,351
  • 3
  • 22
  • 34
0
votes
1 answer

MKMapViewDelegate is called but Pin does not drop as I set

I try to make a pin annotation to drop in MapView . But it doesn't . The view controller has one table view and I plug mapView into the header. DetailViewController - (void)viewDidLoad { [super viewDidLoad]; self.title = @"Nearby"; …
0
votes
2 answers

Not displaying DetailDisclosureButton inside annotated view

We are trying to implement MKMapView in iOS application.I got the mapView with the given locations and pins.When I tap on these pins I am getting the title and subtitle also.Now I want to include a detail Disclosure button in this view in which the…
iOSiOS
  • 214
  • 2
  • 5
  • 10
0
votes
2 answers

didUpdateUserLocation not calling with view reloaded

I'm getting an error in my IOS application. I've searched in the google and here, but the specific solution was not found! I have a viewController called mapView that I use in two moments in my app, this view contains a MKMapView and the code. In my…
sidneivl
  • 242
  • 3
  • 12
0
votes
2 answers

viewForAnnotation method never called

I have implemented my MKMapViewDelegate, but for some reason my viewForAnnotation method is never called. I can confirm that annotations are displayed on the MapView. I've added an NSLog() to my method and the logging statement is never printed. I…
seedhead
  • 3,655
  • 4
  • 32
  • 38
0
votes
2 answers

Can you create an annotation in Mapview from an address?

I have "googled" this question a few times today with no luck. I would like to know if it is possible to create an annotation in Mapview from an address rather than using the lat/Long method. My current code is below. //1. Create a coordinate for…
Apps
  • 103
  • 1
  • 10
0
votes
2 answers

MKMapView doesn't scroll and doesn't not zoom

I have a MapView and marked where the user's location and nearby there are other annotationView of various types regarding tourist attractions. I want the MapView is scrollable and zoomable to see all annotationView of the city, but when I move the…
Ortensia C.
  • 4,666
  • 11
  • 43
  • 70
0
votes
1 answer

ios6 visibleMapRect not correct

I have an app that on startup centers on a specific location. //Calculate and set new center point CLLocationCoordinate2D zoomLocation = CLLocationCoordinate2DMake(,); MKCoordinateSpan span; span.latitudeDelta =…
1 2 3
10
11