如何在MKMapView中添加Streetview功能? [英] How to add Streetview function in my MKMapView?

查看:106
本文介绍了如何在MKMapView中添加Streetview功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望将Streetview功能添加到我使用MKMapView制作的当前iphone应用程序地图中。
知道如何做到这一点吗?

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

Thx求助,

Stephane

推荐答案

除非您想花费很长时间将图块映射到3D世界,否则您可以提供指向地图应用的链接,这样可以让用户选择街景。

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.

如果您想要一种简单的方法来嵌入街景视图,请使用(相当新的)街景图像API,返回位置和标题(相对于道路)的静态图像:

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

这篇关于如何在MKMapView中添加Streetview功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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