Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-07-2009, 06:46 PM   #1 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
Join Date: Jan 2009
Location: California
Posts: 40
dougdrury is on a distinguished road
Default UIWebview, webViewDidFinishLoad and Google Maps Embed Link

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?
dougdrury is offline   Reply With Quote
Old 10-14-2009, 02:23 PM   #2 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
Join Date: Jan 2009
Location: California
Posts: 40
dougdrury is on a distinguished road
Default

I can't believe that no one else is having this issue. Anyone?
dougdrury is offline   Reply With Quote
Old 10-15-2009, 09:43 PM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 242
m_kaminsky@yahoo.com is an unknown quantity at this point
Default

Quote:
Originally Posted by dougdrury View Post
I can't believe that no one else is having this issue. Anyone?
Activity Indicators in general are causing by brain to hurt.
m_kaminsky@yahoo.com is offline   Reply With Quote
Old 10-16-2009, 02:40 PM   #4 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 5
nathanp is on a distinguished road
Default

Quote:
Originally Posted by m_kaminsky@yahoo.com View Post
Activity Indicators in general are causing by brain to hurt.
I am no expert but the nsstring doesnt look right
nathanp is offline   Reply With Quote
Old 10-16-2009, 03:01 PM   #5 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
Join Date: Jan 2009
Location: California
Posts: 40
dougdrury is on a distinguished road
Default

Quote:
Originally Posted by nathanp View Post
I am no expert but the nsstring doesnt look right
I have to put the @@ in the string because google expects an @ sign inbetween two items in the GET string.

The request works and the maps show, but the stinkin' activity indicator just ignores the javascript/ajax httprequests that are going on in the page.
dougdrury is offline   Reply With Quote
Old 10-22-2009, 03:05 PM   #6 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
Join Date: Jan 2009
Location: California
Posts: 40
dougdrury is on a distinguished road
Default

Really? No one?
dougdrury is offline   Reply With Quote
Reply

Bookmarks

Tags
google, javascript, uiwebview, webviewdidfinishload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 345
10 members and 335 guests
givensur, glenn_sayers, guusleijsten, ipodphone, jbro, mediaspree, mtl_tech_guy, Punkjumper, whitey99, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:35 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0