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

View Single Post
Old 09-12-2008, 06:31 PM   #1 (permalink)
varchar
Registered Member
 
Join Date: Aug 2008
Posts: 100
varchar is on a distinguished road
Default Loading (google) Map in view (better way?)

Hi,

Anyone know the best way to load a google map to a view?

Basically, I am interested in displaying a google map and putting a pin at current location... (yes this can be done via the map app, but I am creating a GPS application in which I need to do this in the app).

Currently, the best way I figured out was to either use googles static map API or create a html file, put it on a server, and then from iphone call the html with currentlatitude/currentlongitude params to drop the pin.

Both strategies work well for me, but they are EXTREMELY slow in loading up. I am loading up using the webview control. (see below)

As I said, it works well, but is very slow... I am trying to see if anyone knows of a better way to do this?

Code:
webViewMap.scalesPageToFit = YES;
	[webViewMap loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:finalURL]]];

Thanks!
varchar is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,545
Threads: 94,071
Posts: 402,693
Top Poster: BrianSlick (7,989)
Welcome to our newest member, ceolacc18
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:40 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.