I launch the maps-App in my iPhone's App with the google-URL with the following code:
NSString *urlString =
[NSString stringWithFormat:@"http://maps.google.com/maps?q=%@ %@&layer=t", latitute.text,longitute.text];
NSString* encodedString =
[urlString stringByAddingPercentEscapesUsingEncoding:
NSUTF8StringEncoding];
NSURL *aURL = [NSURL URLWithString:encodedString];
[[UIApplication sharedApplication] openURL:aURL];
With "layer=t" I will open the traffic-layer automatically. Using a Browser, maps showing the layer, in the maps-app not.
Has anyone have a solution for this problem?
Thanks.