Does MKMapView support the “little man” street view?

為{幸葍}努か 提交于 2019-12-11 05:04:36

问题


There is no little man icon to drag onto a street in a map. Is there a way to enable him programmatically?

Thanks.


回答1:


The MKMapView does not have support for the "little man" (Pegman) or Street View.

One alternative is to use the Google Maps Javascript API V3 directly. In a UIWebView, load an html file (added as a resource in your app) containing a Google map. For sample html files containing Street View, look for the streetview-*.html files on the Google Maps Javascript API V3 Examples page.

Another alternative is to call the Maps app from yours using openURL: and pass it a Map Link. This will only work on the device (the simulator doesn't have the Maps app and will open the browser instead).



来源:https://stackoverflow.com/questions/6329934/does-mkmapview-support-the-little-man-street-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!