kiri
kiri

Reputation: 2007

About MKMapView

I am working on a iPhone Application

My requirement is,

When i open my app it must open a globe we can rotate the globe by touching it.We have to pin point the important cities like maps.When we click on the pin we have to zoom in and show the city nearer.

Is it possible to do it by using MKMapView.Can you please Help me.

Upvotes: 0

Views: 796

Answers (2)

Cody Evers
Cody Evers

Reputation: 16

The best work around that I have found is to create a custom AnnotationView. Within the AnnotationView create a -(void)BeginTouch method. Add you custom methods here... For example, I've called NotificationCenter below.

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { 

UITouch* aTouch = [touches anyObject]; 
startLocation = [aTouch locationInView:[self superview]]; 
originalCenter = self.center; 
[[NSNotificationCenter defaultCenter] postNotificationName:@"mapNoteSelected" object:self userInfo:nil];
[super touchesBegan:touches withEvent:event]; } 

Hope that helps!

Upvotes: 0

Hunter
Hunter

Reputation: 4371

MKMapView doesn't display a map in 3D, which is what it sounds like you want with the spinning globe.

As far as identifying points and zooming on on locations, both are very doable with MKMapView, albeit in 2D.

Upvotes: 2

Related Questions