Iphone app中的Google Map Street视图
问题描述:
我们可以在MKMapKit中使用街景吗?
它与iphone谷歌地图应用程序。
我们可以整合我们的应用程序,如果现在为什么?
Can we use Street View in MKMapKit? it is with iphone google map application. Can we integrate in our application if now why?
答
我已经设法使用javascript Google实现了这一点Maps API。 iPhone 4的性能非常好,在3GS上是合理的,但在3G上并不是真的可用,因为它太慢了。这有点hacky并且远非理想,但如果你处于紧张状态,应该完成工作。
I've managed to implement this using the javascript Google Maps API. The performance is great on the iPhone 4, reasonable on the 3GS, but not really usable on the 3G because it's just too slow. It's a little hacky and far from ideal, but should get the job done if you're in a pinch.
<html>
<head>
<meta name='viewport' content='width=320,user-scalable=no'/>
<script src='http://maps.google.com/maps/api/js?sensor=false' type='text/javascript'></script>
</head>
<body onload="new google.maps.StreetViewPanorama(document.getElementById('p'),{position:new google.maps.LatLng(37.77, -122.41)});" style='padding:0px;margin:0px;'>
<div id='p' style='height:100%;width:100%;'></div>
</body>
</html>