如何在UIWebView中打开Goog​​le街景? [英] How to open Google Street View in UIWebView?

查看:141
本文介绍了如何在UIWebView中打开Goog​​le街景?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在UIWebView中打开街景但它不起作用。我只能看到普通的地图。我该如何解决?还有其他任何可能吗?

I´m trying to open street view in UIWebView but it doesn´t work. I can see just normal maps. How can I solve it? Any other possibilities?

这是我的代码:

NSString *urlAddress = @"http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=bran+castle&sll=44.439972,26.096894&sspn=0.000869,0.003664&ie=UTF8&hq=Bran+Castle&hnear=Bran+Castle,+Strada+General+Traian+Mo%C8%99oiu+nr.+28+E574,+Bran+507025,+Romania&t=k&layer=c&cbll=45.516381,25.368123&panoid=0d7jjq7vdWGTxFyonEKnBQ&cbp=12,209.81,,1,-18.52&ll=45.516381,25.368123&spn=0,0.008444&z=17";

//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];

//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

//Load the request in the UIWebView.
[webV loadRequest:requestObj];


推荐答案

不。你无法做到这一点。

No. U can't achieve this .

见这里
但你可以这样

see here but u can like this

http://maps.google.com/?q=Tokyo@35.680,139.769

你可以通过这个链接到你的webview加载它。

u can pass this link to ur webview to load it.

见这里

MapKit是否允许使用StreetView?

这篇关于如何在UIWebView中打开Goog​​le街景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆