mapkit

How can i find the shortest path or rout using the Mapkit in iphone?

Hi I want to know that how can i get the shortest distance from source A to Destination B using the MapKit in iphone. Please help me if any one has any idea, sample code, article or any other material regarding my question. Regards, Iphone Developer ...

iPhone MapKit Framework to cache Google map for offline use

I am planning on a map project for hiking on iPhone. Since the area for hiking may not be covered by mobile network. Therefore, it is necessary to pre-cache the map (Google) of the area. 1) Can MapKit Framework support caching Google Map on iPhone locally ? 2) Can MapKit Framework support to use offline map during GPS-ing ? Thanks. ...

Mysterious borders during MKMapView animation

I have a UIView in which I flip between a UITableView and a MKMapView. The MKMapView is created at runtime and animated in the following function: [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; [UIView setAnimationTransition:(self.mapView == nil ? UIViewAnimationTransitionFlipFromRight : UIViewAnimationTra...

iPhone SDK: MapKit multiple custom annotations.

I am able to load a big list of location onto my MapKit and display them all with a custom Pin image and annotation. The issue i'm having is that I currently have all annotations displaying the same Title, Subtitle, and pinImage. How do I make it so that I can set each annotation with its own Title and different Pin image? I'm having a...

Where to find what MKDomainError error 4 means?

I keep getting this randomly when I run my gps app I'm building. It doesn't happen everytime, and the coordinates passed in are always valid (i nslog them). Is there documentation for these somewhere? ...

Calculating bearing between two CLLocationCoordinate2Ds

Very "simple" problem: given two CLLocationCoordinate2Ds, how can I get the bearing (as radians) from the first to the second? I've done a lot of research and studying on this, both the general problem and Objective-C/Cocoa Touch/iOS specifically. Here's my implementation: - (float) getHeadingForDirectionFromCoordinate:(CLLocationCoord...

MonoTouch crashes when MKOverlayView's SetNeedsDisplay(MKMapRect, float) is invoked

Hello, I am trying to create a custom tile layer to work with MapKit, using overlay views provided with the iPhone SDK 4. My work is based on this example here, but adapted to MonoTouch: http://github.com/mtigas/iOS-MapLayerDemo. I have managed to bring the tile images but when calling SetNeedsDisplay(MKMapRect, float) method of my ove...

Coordinates of bottom-left corner of a mapView off by a few pixels

Hi, I'm trying to put an Annotation the lower left corner of currently visible map region, although the following code CLLocationCoordinate2D origin = getOriginOfRegion(mapView.region); [[[SimpleAnnotation alloc] initWithCoords:origin] autorelease]; ... extern CLLocationCoordinate2D getOriginOfRegion(MKCoordinateRegion region){ retu...

Multiple Annotations On Mapkit for iPhone

Does anyone know how to display more than one location on a map Using Database? I am trying to drop Multiple Pins on google Map with the help of database but just able to drop last pin ...

Custom use of MKPinAnnotationView

Hello all, Is it possible to use MKPinAnnotationView controls in a application that has nothing to do with maps. I do not want to use MKMapView, I just want to reuse the MKPinAnnotationView control and be able to drop it at a specific screen coordinate. Thanks, Cristian ...

Unit Testing With iPhone MapKit Framework Freezes Test Build

I have been performing unit tests on my iOS4.1 iPhone app successfully. I am currently trying to add some tests for a portion of my logic that uses APIs from the MapKit framework. As soon as I add the MapKit framework to my LogicTest target, the target will not compile -- the compile process just hangs. This occurs even if I have no tes...

I have an iphone application which uses dragging of annotations on a MapView, is this possible is the iPad?

I am trying to use: - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)annotationView didChangeDragState:(MKAnnotationViewDragState)newState fromOldState:(MKAnnotationViewDragState)oldState And was getting errors when building this for the iPad, but I have since realised that it is iOS 4 specific, so it won't work ...

Clipping in MKOverlayView:drawMapRect

I'm having an issue with drawing to areas outside of the MKMapRect passed to drawMapRect:mapRect:zoomScale:inContext in my MKOverlayView derived class. I'm trying to draw a triangle for each coordinate in a collection and the problem occurs when the coordinate is near the edge of the MKMapRect. See the below image for an example of the...

Received memory warning in modal view -- parent view controller's objects get released. How to prevent?

My root view controller is a map with several annotations. When an annotation is selected and the accessory button is tapped, I display a modal view that looks like so: http://i.imgur.com/hACyH.png In this modal view, you can get a street view look at the annotations coordinate (I do this using a UIWebview). You can also submit a phot...

Creating mapkit's showsUserLocation pin ripple animation

Hi All, Has any one successfully created user location pin that has a ripple like effect that 4.x (or higher) mapkit gives when we use mkMakkit.showUserLoaction = YES; If any one has done it please guide me how to do it or past sample code that does that effect. The user location in the mapkit is read-only property. Has anyone able to...

Integrate calender into application for iOS

Hey, I wondered if anyone knows if its possible to use the functionality of the calender within an application similar to how you can use the MapKit inside your application. Thanks, William ...

Using custom map with MKMapKit

Hi, I am creating an iPhone app for OS4.0, and I am attempting to integrate a custom map with a standard MKMapView. I have been provided a map in .eps format (vector image), and I want to somehow overlay this on an MKMapView in and restrict the scrolling boundaries of the map so users cannot scroll outside the boundaries of the custom ma...

MyAnnotation view multiple lines text in iphone google map

MKCoordinateRegion region1; region1.center.latitude = 50.366772; region1.center.longitude = 20.010607; region1.span.longitudeDelta = 0.01f; region1.span.latitudeDelta = 0.01f; MyAnnotation *ann1 = [[MyAnnotation alloc] init]; ann1.title = @"Text1"; ann1.subtitle = @"Text2\n, Text3\n, Text4\n"; a...

Testing current location in Iphone simulator

I have integrated the myAnnotationview custiomed api in to my project.And i have added some address on it.I want to test it from iphone simulator.Is it possible?How can i achieve it?Do i need to ON anything in Simulator? Thanks ...

How to display an image on a MKOverlayView?

UPDATE: I'm still struggeling with this problem, although I may have some leads. Maybe it has something to do in what way the images are projected on the MKMapView, Google Maps uses the Mercator projection to project it's images onto a map. If you compare the above image to that of the previous uploaded images, then it looks like t...