ios6-maps

How to enable Two-Finger rotation on Apple Maps

♀尐吖头ヾ 提交于 2019-12-11 10:07:59
问题 How can i enable Two-Finger rotation feature that we see in New Apple Maps in iOS6? Has anyone done this yet? Is there something in the documentation i might be able to find? Thanks Everyone. 回答1: It is not possible to have the rotation with the MKMapView, this is not available as a setting in the official API. 回答2: It's not possible. The API which apple has documented does not include rotation with two-fingers, Here is the Documentation : Two-Finger 回答3: just do: [mapView setRotateEnabled

How to launch iOS Maps App with specific address in iOS 6?

不羁的心 提交于 2019-12-10 21:38:46
问题 I have an app in which I allow users to launch the Maps App (Google or Apple) to view an address. I used to do this: Address *address = [self.person.addresses objectAtIndex:0]; NSString *addressString = [NSString stringWithFormat:@"%@ %@ %@ %@, %@ %@", address.line1 == nil ? @"" : address.line1, address.line2 == nil ? @"" : address.line2, address.line3 == nil ? @"" : address.line3, address.city == nil ? @"" : address.city, address.state == nil ? @"" : address.state, address.zip == nil ? @"" :

iOS 6 Map doesn't zoom with MKUserTrackingModeFollow

一曲冷凌霜 提交于 2019-12-07 11:13:38
问题 While my iOS6 MKMapView is in MKUserTrackingModeFollowWithHeading or MKUserTrackingModeFollow , zoom gestures (pinch, double-tap, two-finger tap) work sometimes, but not always. The issue seems to occur when didUpdateUserLocation: is called after regionWillChangeAnimated and before regionDidChangeAnimated . Any ideas on how to fix this? To isolate the problems, I've created a Single View Application with an MKMapView and a UIToolbar (set up in a .xib), to which I'm adding a

Open Apple Maps and Start Route from Current Location to Home Immediately in iOS 6.0

故事扮演 提交于 2019-12-07 10:08:24
问题 I'm wanting to create a link in my application that essentially will be labelled "Take Me Home". When pressed, I want it to open Apple Maps, route from current location to home, and start turn by turn navigation. I have found this scheme, but it does not do everything I was hoping for: http://maps.apple.com/maps?saddr=%f,%f&daddr=%f,%f 回答1: Here is a working code for opening Maps with routes (including the option to show Google maps for iOS5) -(IBAction)showMapApp:(id)sender {

Google maps V3 JS no happen “center_changed” from UIWebView iOS6(iPhone)

前提是你 提交于 2019-12-07 03:14:43
问题 I'm trying to display GoogleMap(Google maps V3 JS) in UIWebView(ios6) . but, When I moveing the map in webview,event no fire center_changed . Move map has been completed, event fire. Why? ... Someone told me page: http://gmaps-samples-v3.googlecode.com/svn/trunk/map_events/map_events.html Mac' Safri access - fire center_changed while the map is moving. iOS6 Safri access - move map is complete, fire center_changed . ... I want to know the Center-Cordinates of the map while moving. Please tell

Routing Data for MKMapKit in iOS6

核能气质少年 提交于 2019-12-06 07:43:26
问题 I have done routing in iOS apps before, but with iOS6 we are now displaying Apple maps - which causes a problem because we are using Google routing data and if we use Google data, we are supposed to be displaying it on a Google map. I have been searching but as far as I can tell, Apple does not provide any routing data. The closest thing to an answer so far seems to be when Apple says Apps that consume direction information do so by sending an appropriate request to the Maps app, which then

Open Apple Maps and Start Route from Current Location to Home Immediately in iOS 6.0

三世轮回 提交于 2019-12-05 12:32:50
I'm wanting to create a link in my application that essentially will be labelled "Take Me Home". When pressed, I want it to open Apple Maps, route from current location to home, and start turn by turn navigation. I have found this scheme, but it does not do everything I was hoping for: http://maps.apple.com/maps?saddr=%f,%f&daddr=%f,%f Here is a working code for opening Maps with routes (including the option to show Google maps for iOS5) -(IBAction)showMapApp:(id)sender { CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(self.location.latitude,self.location.longitude); //create

iOS 6 Map doesn't zoom with MKUserTrackingModeFollow

夙愿已清 提交于 2019-12-05 12:23:49
While my iOS6 MKMapView is in MKUserTrackingModeFollowWithHeading or MKUserTrackingModeFollow , zoom gestures (pinch, double-tap, two-finger tap) work sometimes, but not always. The issue seems to occur when didUpdateUserLocation: is called after regionWillChangeAnimated and before regionDidChangeAnimated . Any ideas on how to fix this? To isolate the problems, I've created a Single View Application with an MKMapView and a UIToolbar (set up in a .xib), to which I'm adding a MKUserTrackingBarButtonItem . The UIViewController acts as a <MKMapViewDelegate> . Here's the complete implementation

Google maps V3 JS no happen “center_changed” from UIWebView iOS6(iPhone)

拜拜、爱过 提交于 2019-12-05 07:47:04
I'm trying to display GoogleMap(Google maps V3 JS) in UIWebView(ios6) . but, When I moveing the map in webview,event no fire center_changed . Move map has been completed, event fire. Why? ... Someone told me page: http://gmaps-samples-v3.googlecode.com/svn/trunk/map_events/map_events.html Mac' Safri access - fire center_changed while the map is moving. iOS6 Safri access - move map is complete, fire center_changed . ... I want to know the Center-Cordinates of the map while moving. Please tell me a good way. `<html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

Routing Data for MKMapKit in iOS6

半腔热情 提交于 2019-12-04 15:21:46
I have done routing in iOS apps before, but with iOS6 we are now displaying Apple maps - which causes a problem because we are using Google routing data and if we use Google data, we are supposed to be displaying it on a Google map. I have been searching but as far as I can tell, Apple does not provide any routing data. The closest thing to an answer so far seems to be when Apple says Apps that consume direction information do so by sending an appropriate request to the Maps app, which then handles the task of displaying that information to the user. - which, to me, means that the Maps app