My app uses a UIWebView to show a google map. I have the webViewDidFinishLoad and webViewDidFinishLoad working fine to start and stop the activityIndicator for my users to see network activity... BUT!
Since google maps uses javascript to load the tiles, points and other layers... my activity indicator stops WAAAAAYYYY before the screen shows up. All it shows is the google maps "loading" tag and my users are getting confused and not waiting long enough for the map to display... and hence sending me nasty-grams about how the maps don't work.
I have searched this forum and found alot of posts like this, but not one that actually addresses this issue. I am getting better at iPhone Dev stuff, but this one is killing me.
I am not using the API that needs a key, I am just using the embed URL that shows the map.
Like so:
Code:
NSMutableString *googleSearch = [NSMutableString stringWithFormat:@"http://maps.google.com?output=embed&iwloc=near&z=%d&ll=%@,%@&q=%@@%@,%@",mapZoom,latitude,longitude,pointName,latitude,longitude];
mapWebView.delegate=self;
[mapWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:googleSearch]]];
Any thoughts?