How to add Streetview function in my MKMapView?

為{幸葍}努か 提交于 2019-12-21 23:20:17

问题


I'm looking to add Streetview function to my current iphone app maps I made with MKMapView. Any idea how to do this?

Thx for helping,

Stephane


回答1:


Unless you want to spend a long time mapping tiles onto a 3D world, you can give a link to the maps app, which lets the user choose Street View.

If you want an easy way to embed Street View, use the (fairly new) Street View Image API, which returns static images for a location and heading (relative to the road):

http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&fov=90&heading=235&pitch=10&sensor=false



来源:https://stackoverflow.com/questions/8522210/how-to-add-streetview-function-in-my-mkmapview

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