mapkit

iPhone SDK: ReverseGeocoder updates too late?

I am using reverseGeocoder in a few places in my app. This particular instance, I am using it to update details about my annotation. I have created a property (MKPlacemark) which stores the new placemark each time the didFindPlacemark method runs. The problem is, it always seems to be behind by one update. Meaning, when my custom met...

iPhone mapKit annotation for Current Location

Hello Im currently strugglung with annotations. how can i prevent the AnnotationLable for the blue GPS-point. (Here is an Image) - (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(MKAnnotation *) annotation{ if (annotation == mapView.userLocation) { return nil; } the function above isnt working, and i reali...

Displaying Map ONLY when the button is clicked in Xcode

Hi, I am developing an iPhone application using XCode and I am kinda stuck with the functionality described in the subject of this post. I want the map(using MapKit) to only load and display after I click a button. So, what code should I have under that my "(IBAction) showMap" function? Whatever I could find online talks about unhidin...

Setting the map as hybrid has no effect?

Does anyone know why setting the map as hybrid has no effect. Setting it as standard and satellite works fine though? . . . [segmentedControl addTarget:self action:@selector(handleSegmentClick:) forControlEvents:UIControlEventValueChanged]; [window makeKeyAndVisible]; return YES; } - (void)handleSegmentClick:(id)sender { ...

Is it possible to add a custom image in the info pane in mapkit?

I am trying to add a custom image for the info pane in google map once a user clicks on a marker. I can't find anything in the MKAnnotation class. Any help would be appreciated. ...

Uncaught Map View exception

I can't seem to figure out where the problem is. I have put a Map View control on my view and I am getting the following exception - * Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named MKMapView' ...

How to get left-top and right-buttom latitude and longitude of map in MapKit For iPad ?

Hi, i'm looking for answer about getting latitude and longitude from uimapkit. there is same problem that has been answered, but it didn't give right coordinate. http://yit.me/3ddp73 it's code from thread i'm linking above. CLLocationCoordinate2D topLeft, bottomRight; topLeft = [mapView convertPoint:CGPointMake(0,0) toCoordinateFromV...

MapKit custom annotations being added to map, but are not visible on the map

I have an interface with a mapView and UITableView. Data is loaded from a server, and the annotations are created and added to the map with [mapView addAnnotation:truck] the tableview is then populated using the array thats retured from [mapView annotations] once this process is completed, i check the number of annotations on the ...

How can I tell when regionChange event on MKMapView is programatic or user-drag of map?

I have an MKMapView with a registered delegate so I can listen for region change events (specifically, regionDidChangeAnimated). I'm looking for a robust way of telling if a region change event was the result of a user dragging the map or from a programatic setRegion: request. My goal is to have an app that auto-centers the map based o...

iPhone MapKit problems: viewForAnnotation inconsistently setting pinColor?

Hi, I'm trying setup a map that displays different pin colors depending on the type/class of the location in question. I know this is a pretty common thing to do, but I'm having trouble getting the viewForAnnotation delegate to consistently update/set the pin color. I have a showThisLocation function that basically cycles through a l...

how can I show compass/heading on mapkit mapview

on the iPhone 3GS in the "Maps" app you can click the icon which usually shows your position twice and the blue dot gains what looks like a beam from a headlamp, basically showing you the direction you are facing on the map and rotating the image accordingly. Is this option available using MapKit MapView ? I'm know that I can get my h...

ReverseGeoCoder Fail Error in Mapkit

Hi All, I am making the ReverseGeoCoder request with the following latitude and longitude Latitude = 37.296740 Longitude = -122.001878 I am getting an error as "/SourceCache/ProtocolBuffer/ProtocolBuffer-19/Runtime/PBRequester.m:446 server returned error: 503" With the ReverseGeoCoder fail message as "Error Domain=PBRequesterErrorD...

Issues declaring already existing NSMutableArray in new class

I have a class (DataImporter) which has the code to download an RSS feed. I also have a view and separate class (TableView) which displays the data in a UITableView and starts the parsing process, storing parsed information in an NSMutableArray (items) which is located in the (TableView) subclass. Now I wish to add a UIMapView which dis...

Reverse geocode street name and city as text

Hello, I have been having some trouble finding a good way to output just the street name and city as text (Infinite Loop, Cupertino shown here) that can be displayed in my iPhone app. This needs to be able to dynamically change as you change streets and city. I don't have the slightest idea of how to do this, I hope someone can help. I h...

iphone zoom to user location on mapkit

I'm using map kit and showing user's location using "showsUserLocation" I"m using following code to zoom to user's location, but not zooming. Its zooming to some location in Africa, though the user location on map is showing correct. MKCoordinateRegion newRegion; MKUserLocation* usrLocation = mapView.userLocation; newRegion.center.lat...

iphone facebook wall posting with image map link

Hello, is possible to attach a link (image) of a google map on the side of my wallpost throug iphone? my wall post is ok, but i've no idea how to do with the map. Ps in my app i've implemented also mapkit, i don't know if i make a gquery with coordinate to obtain map link or i must work using the position that i have on mapkit i've foun...

iPhone: Can't get mapkit custom annotation image to work

I figured that using my own custom pin image for annotations would be super easy. But, I have never been able to get it to work, and I have no idea why! I am simply using: Annotation *anno = [[[Annotation alloc] init] autorelease]; anno.coordinate = ridesMap.userLocation.location.coordinate; anno.title = @"Current Loca...

Degree location and mapkit

12.2N 109.2W Given this location, how would I find a point on a mkmapkit map? Does it have to be converted to lat/long? Little bit lost about this... ...

How to find the direction of a location (eg., parking area) from CURRENT location using mapkit on iPhone

I am new to using mapkit related. Suppose, that I am heading towards East. I want to know in which direction a place (eg., parking area) is located with reference to my CURRENT location. (For eg., like parking area A is in 60degrees anticlockwise direction etc) Any inputs are welcome. Thanks in advance. ...

Tracing user path on a MapView?

Hii Frnz, I am developing an app which computes the distance travelled by the person and shows a map view which draws a line showing the user path from initial position to final position. Now I am stuck as to how to trace a line on the user path...Should I try a custom annotations(or overlays) or is it possible to draw line on user pat...