Iphone app中的Google Map Street视图

mac*_*ent 3 iphone

我们可以在MKMapKit中使用街景吗?它是与iPhone谷歌地图应用程序.如果现在为什么我们可以整合到我们的应用中

小智 12

我已设法使用javascript Google Maps API实现此功能.iPhone 4的性能非常好,在3GS上是合理的,但在3G上并不是真的可用,因为它太慢了.这有点hacky并且远非理想,但如果你处于紧张状态,应该完成工作.

<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>
Run Code Online (Sandbox Code Playgroud)


Gor*_*tie 6

目前用于iPhone的MapKit API不包括对街景的访问权限.

有关可用功能的完整列表,请访问:http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MapKit_Framework_Reference/index.html