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!