I've seen many are giving solutions but no one is providing detailed information that where it should be modified and how we can start running the application also in the Google-map-component there is no sample file included. So Here is the information for my friends who are new to Iphone map development!
To follow up on this issue, apparently the component is using wenear.com simply to host its javascript. That's unnecessary. The component can easily carry its own javascript with it and remove all non-google dependencies.
Place the current contents of iphone-test in a file called GoogleMapAPI.html in the project.
goto
http://www.wenear.com/iphone-test and hit 'View Source'. Stick the contents of the source code into a new HTML file called GoogleMapAPI.html
Then change MapWebView -loadMap as follows.
- (void) loadMap {
int width = (int) self.frame.size.width;
int height = (int) self.frame.size.height;
NSString *path = [[[NSBundle mainBundle] pathForResource:@"GoogleMapAPI" ofType:@"html"]
stringByAppendingFormat:@"?width=%i&height=%i&zoom =%i",
width, height, DEFAULT_ZOOM_LEVEL];
NSURL *url = [[[NSURL alloc] initWithScheme:NSURLFileScheme host:@"localhost" path

ath] autorelease];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[self loadRequest:request];
}
Enjoye IPHONE Development