Addign Map to a WebView in iPhone

679
1
08-12-2012 04:03 AM
VadimGaiduk
New Contributor
I have function that adds different instance to a WebView.
How can i add a map view to already existing WebView?

I want to use my function for setting the map on a WebView.

If someone can write some code to shoe how to implement and set it it woudld be great.

I tried:

MapViewDemoViewController *test = [[MapViewDemoViewController alloc] initWithFrame:CGRectMake(20,95, 285, 285)];
[[self.webView superview] addSubview:test];
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
The AGSMapView is a UIView and iOS SDK does not allow to add UIView to the UIWebView. So you can't do it.

Regards,
Nimesh
0 Kudos