mapkit

Objective-C Overlay third-party map with GPS

Is it possible to overlay a third-party map and use the iPhone's GPS services? That is, for example, I have a street map of my own and want to use the GPS to track where I am in relation. Is this possible? Further, if so, are there any examples out there? ...

Adding a new view on rightcalloutaccessoryview button press

Hello all: I want to add a new view on a rightcalloutaccessoryview button press. I currently have the functionality for dropping a pin on the map. A callout (MKAnnotation) with a title, subtitle, and chevron loads when I tap the pin. When I tap the chevron (rightcalloutaccessoryview) I want another view to pop up showing more informatio...

How to move a MKAnnotation without adding/removing it from the map?

Is it possible to move the coordinate of a MKAnnotation without adding and removing the annotation from the map? ...

Finding the top of mapview

From an MKCoordinateRegion, how do I tell what the top of a mapview's visible area is? The MKCoordinateRegion will have a center point (coordinates). Do I then add the latitudeDelta to the center point latitude to find the top of the map? Or must the delta be split in half and each half added and subtracted against the center point la...

String to Float in Objective-C for Map Kit

I'm trying to pass some lat/long values from a JSON doc to iPhone's Map Kit to then plot the points on the map. The values are coming from an NSArray: CGFloat goLat = [valfields objectForKey: @"geo_lat"]; CGFloat golong = [valfields objectForKey: @"geo_long"]; CLLocationCoordinate2D newCoord = {golat, golong}; etc... But I'm getting...

resize map icon when Zooming

Hi all I want to resize the map icon when Zooming is applied on mapkit.IS this possible ...

iPhone Development: MapKit with CoreData

Is there a good resource (book, article/tutorial, video, audio) on working with both MapKit and CoreData together? An article with some tips and tricks to efficiently utilize the memory and avoid running in to memory warning situations? I appreciate any personal advises that you can give me, as well. ...

Monotouch MapKit - annotations - adding a button to bubble

Hey Anyone know if there's anyway to get a button onto an annotation? I'd like the location to be selectable - so you can say.. select the location and get all the events at that location by clicking on the button. is this possible? w:// ...

Custon MKPinAnnotationColor

Hi, I have searched a bit on google, but didn't really found an answer to my question. I want to create a pin with a different color, e.g. yellow or orange. How should I do this? It seems that it's not possible to create one sending a UIColor to it. Should I design them myself and somehow change the pin to an own image? Best regards, ...

iphone mapkit drag and get center location

HI, I have a Mapview with some marker points + a marker for current location. Now, what I want to do here is, when user drag or traverse through mapview, I want to find coordinate (latitude, longitude) of the new center location after map has been dragged. I want to clarify once again, I am not talking about dragging the marker/point,...

Draw line above Mapkit: Invalid Region error.

Hey guys, I'am trying to draw a line above mapkit. If I try to set the region my app crashes: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:-106.01842850, +37.33390400 span:+0.01000000, +0.01000000>' span waas set manually. Why does mapkit says that this is an invalid reg...

Why does a pin placed at the same latitude and longitude in MKMapView differ from one in Google Maps?

I drop a pin in an MKMapView with longitude and latitude. When I place same longitude and latitude on google map the pin on both are slightly different. ...

Mapkit issue in finding annotation current position.

I am implementing map kit in my app and i am using this first time so please tell me how to find the current position of the annotation.? ...

iPhone Mapkit Blue Dot / User Location Region Zoom Question

Hey All, Is is possible to set a region based on a current location in a mapview only one time. I want my iphone app to get the current location, zoom into that current location, and then allow the user to scroll around. However, because my setRegion code is in my didUpdateToLocation function, every time the current location is updated...

Determining distance using mapkit

How is a 1000ft or 1/2 mile distance determined with mapkit? Either a radius from some pin or the distance between two pins. For example, I center the map on pin A. Pins B, C, and D are also on the map at various distances from pin A. B and C are within 1/2 mile from A but D is 1 mile away. I'd like to know that B and C are within 1...

iPhone Development: CoreLocation and MapKit

How bad is it to use Location Manager to retrieve the location information when MapView.showUserLocation is also TRUE? I have a situation where i want to show the blue dot to indicate the user's current location, and i want to record the user's current location after some time interval. Having said that, there may be situations where th...

Mapkit pin color not changing

I'm doing the following and always get green pins: pin.pinColor = MKPinAnnotationColorRed; [self.mapView addAnnotation:pin]; [pin release]; pin is of type "NSObject ". All pins come out as green. Should I be doing it differently? ...

iPhone MapKit - Go "Around the World" ?

I have an App that is using MapKit. I am dropping pins and everything else, but when I zoom out to view the entire world, it does not let me go past the the middle of the Pacific Ocean. If I am viewing California and want to go to China, I have to scroll all the way East to view it. Is there a setting that I need to turn on, or is this...

Finding user location before map loads

I'm trying to find the user's location using: CLLocationCoordinate2D _location; CLLocation *userLoc = nil; if(appDelegate.clLocationManager.locationServicesEnabled){ userLoc = mapView.userLocation.location; _location = userLoc.coordinate; } The problem is that I haven't yet initialized the map so the above doesn't work. Is th...

How to follow user location with MapKit

I'm using MapKit to display the user's location relative to pins around them. I'd like to be able to mimic the functionality that Maps provides via the crosshair button in the lower left-hand corner of the screen. I'm already aware that MapKit provides a CLLocation object with the user's location via MKUserLocation, I just wanted to seek...