mkcoordinateregion

Load additional objects from Core Data when a user scrolls an MKMapView

With MapKit in the iPhone 3.0 SDK, you create objects that conform to the MKAnnotation protocol. Loading these onto the MKMapView is very easy. However, when a user scrolls the MKMapView, it's time to load new annotations. A likely place to request the new objects would be in mapView:regionDidChangeAnimated: which is called when the map'...

Get TopLeft and BottomRight from MKCoordinateRegion MKMapView

I checked the properties in documentation for MKCoordinateRegion, MKCoordinateSpan and MKMapView to see there is a way to get the TopLeft and BottomRight Lat Long from the map view and I didn't find any. I know that the span gives me the Lat long delta but is there a way to get the actual TopLeft and BottomRight lat longs from map view w...

How can I pass latitude and longitude values from UIViewController to MKMapView?

I have a detail view that includes three UIButtons, each of which pushes a different view on to the stack. One of the buttons is connected to a MKMapView. When that button is pushed I need to send the latitude and longitude variables from the detail view to the map view. I'm trying to add the string declaration in the IBAction: - (IBAct...

MKMapView span doubling bug

Setting the region in MKMapView occasionally results in the span being doubled. This bug seems to appear early in the map initialization phase. Although it's been reported elsewhere I wasn't able to find a descent existing workaround, so I'm posting my fix here. It relies on the fact that the regionThatFits method also produces the bug. ...

iPhone dev - showing two locations on the map

Now I have the coordinate of two locations, let say locationA with latitude 40 and longitude -80, locationB with latitude 30 and longitude -70, I want to create a mapView that I can see both locations with appropriate viewing distance. I got the new coordinate by finding the midpoint (in this example, {35, -75}), but the question is, ...

MKMapView problems after zooming into the map

I have a map that dynamically shows annotations as the user moves around. I am using the method regionDidChangeAnimated to know when the map has been moved and then I get annotations based on the new latitude and longitude. If the user zooms out then I am clustering the annotations. I want to have it so that when a user clicks on a ...